From 8e024590bc2b4428e64e625a9c2392908fc5912e Mon Sep 17 00:00:00 2001 From: JRoberts <8711996+jr-simplex@users.noreply.github.com> Date: Fri, 13 Jan 2023 11:31:35 +0400 Subject: [PATCH] fix createUserRecord query (#604) --- src/Simplex/Messaging/Agent/Store/SQLite.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Simplex/Messaging/Agent/Store/SQLite.hs b/src/Simplex/Messaging/Agent/Store/SQLite.hs index d3c2b7acf..dfdc73103 100644 --- a/src/Simplex/Messaging/Agent/Store/SQLite.hs +++ b/src/Simplex/Messaging/Agent/Store/SQLite.hs @@ -303,7 +303,7 @@ withTransaction st action = withConnection st $ loop 500 2_000_000 createUserRecord :: DB.Connection -> IO UserId createUserRecord db = do - DB.execute_ db "INSERT INTO users () VALUES ()" + DB.execute_ db "INSERT INTO users DEFAULT VALUES" insertedRowId db deleteUserRecord :: DB.Connection -> UserId -> IO (Either StoreError ())