fix port and db selection
This commit is contained in:
@@ -139,9 +139,12 @@ class MainWindow(QMainWindow):
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
conn = psycopg2.connect("user=postgres password=456")
|
||||
conn = psycopg2.connect("user=postgres password=456 host=localhost port=5432")
|
||||
|
||||
createuUiversityDB(conn)
|
||||
|
||||
conn = psycopg2.connect("user=postgres dbname=university password=456 host=localhost port=5432")
|
||||
|
||||
createUsersTable(conn)
|
||||
|
||||
values = [(1, 'Ivan', 15), (2, 'Igor', 22), (3, 'Alex', 16), (4, 'Anna', 40), (5, 'Inna', 30)]
|
||||
|
||||
Reference in New Issue
Block a user