diff options
author | 2009-06-28 16:03:00 -0400 | |
---|---|---|
committer | 2009-06-28 16:03:00 -0400 | |
commit | cc79a0b5321ef71d4e1e3aaeb0f33afcb08e974b (patch) | |
tree | 9fcbf80505ddc3a6e4b3a26a0b2f6218132dfa80 /src/mysql.sml | |
parent | 5c154f05f5e4735d999927925a771b3a21f5a22d (diff) |
Moved query code into Settings
Diffstat (limited to 'src/mysql.sml')
-rw-r--r-- | src/mysql.sml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mysql.sml b/src/mysql.sml index b791a93c..976fefef 100644 --- a/src/mysql.sml +++ b/src/mysql.sml @@ -186,7 +186,7 @@ fun init (dbstring, ss) = newline, string "}", newline, - string "conn = malloc(sizeof(conn));", + string "conn = calloc(1, sizeof(conn));", newline, string "conn->conn = mysql;", newline, @@ -253,6 +253,9 @@ fun init (dbstring, ss) = newline] end +fun query _ = raise Fail "MySQL query" +fun queryPrepared _ = raise Fail "MySQL queryPrepared" + val () = addDbms {name = "mysql", header = "mysql/mysql.h", link = "-lmysqlclient", @@ -268,6 +271,8 @@ val () = addDbms {name = "mysql", newline], string "}", newline], - init = init} + init = init, + query = query, + queryPrepared = queryPrepared} end |