Skip to content

Commit

Permalink
Use octet_length in sql to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Jul 26, 2023
1 parent 16a7b62 commit a58a09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-ghc/Pact/Persist/SQLite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ createTable' t e = do
mkstmt ("INSERT INTO " <> tn <> " VALUES (?,?)") <*>
mkstmt ("REPLACE INTO " <> tn <> " VALUES (?,?)") <*>
mkstmt ("SELECT VALUE FROM " <> tn <> " WHERE KEY = ?") <*>
mkstmt ("SELECT LENGTH(VALUE) FROM " <> tn <> " WHERE KEY = ?")
mkstmt ("SELECT OCTET_LENGTH(VALUE) FROM " <> tn <> " WHERE KEY = ?")
return $ e { tableStmts = M.insert tn ss (tableStmts e) }


Expand Down

0 comments on commit a58a09a

Please sign in to comment.