Compare commits

...

8 Commits

Author SHA1 Message Date
shaggy3007 9cf5d76320 need to fix db name and user name and password 2023-10-16 14:13:00 +02:00
shaggy3007 16ce9bac49 need to fix db 2023-10-16 12:53:26 +02:00
shaggy3007 fc33ce4730 need to fix db 2023-10-16 12:52:27 +02:00
shaggy3007 775c025ee7 cc 2023-10-16 12:50:24 +02:00
shaggy3007 acf44b7b76 need to fix db 2023-10-16 12:48:01 +02:00
shaggy 67b4e3932c gg 2023-10-16 12:46:11 +02:00
elix3007 0c4d1cef71 ciao 2023-10-16 12:44:18 +02:00
elix3007 e372b59e32 need to change db name to 'ingegneria'and create user with superuser
createdb modifier with 'utente' as name and 'password' as password
2023-10-16 12:38:32 +02:00
2 changed files with 9 additions and 2 deletions

View File

@ -1,11 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="Elaborato_IS/src"/>
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/home/shaggy/Scrivania/JavaLib/postgresql-42.6.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -9,11 +9,13 @@ public class Main {
Connection connection = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5432/ingegneria",
"neto", "fethergay");
"utente", "password");
PreparedStatement stmt;
stmt = connection.prepareStatement("DO $$ BEGIN "
+ "CREATE TYPE categoria_appartenenza AS ENUM ('gay', 'frocio', 'down', 'edi', 'spastico');"
+ "EXCEPTION "