Skip to content

Commit 3e79e6e

Browse files
authored
Merge pull request #2124 from joto/fix-update-db-with-user
Fix SQL query for updating a database
2 parents 1c92c57 + e38940e commit 3e79e6e

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)