Skip to content

Commit e38940e

Browse files
committed
Fix SQL query for updating a database
When using the new middle format and --extra-attributes the SQL query was broken.
1 parent 6375e05 commit e38940e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middle-pgsql.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ void middle_pgsql_t::update_users_table()
13761376
m_users_table.name());
13771377

13781378
m_db_connection.exec("PREPARE insert_user(int8, text) AS"
1379-
" INSERT INTO {}\"{}\" (id, name) VALUES ($1, $2)"
1379+
" INSERT INTO {}.\"{}\" (id, name) VALUES ($1, $2)"
13801380
" ON CONFLICT (id) DO UPDATE SET id=EXCLUDED.id",
13811381
m_users_table.schema(), m_users_table.name());
13821382

0 commit comments

Comments
 (0)