fixed last commit
[NeonServV5.git] / mysqlConn.c
index e62ef3f4b4e3f11583842f2d92d64c5fe4350cbb..81fa038cbbc3af2086ea15e5f11d4c121b005cc8 100644 (file)
@@ -22,7 +22,7 @@ void check_mysql() {
 }
 
 MYSQL_RES *mysql_use() {
-    MYSQL_RES *res = mysql_use_result(mysql_conn);
+    MYSQL_RES *res = mysql_store_result(mysql_conn);
     struct used_result *result = malloc(sizeof(*result));
     if (!result) {
         mysql_free_result(res);
@@ -48,7 +48,7 @@ void mysql_free() {
         free(escaped->string);
         free(escaped);
     }
-    escaped_strings = NULL
+    escaped_strings = NULL;
 }
 
 void init_mysql() {