1. Bryan O'Sullivan
  2. mysql

Source

mysql / cbits / mysql_signals.c

Diff from to

File cbits/mysql_signals.c

  • Ignore whitespace
     return ret;
 }
 
+my_bool STDCALL _hs_mysql_commit(MYSQL * mysql)
+{
+    my_bool ret;
+    block_rts_signals();
+    ret = mysql_commit(mysql);
+    unblock_rts_signals();
+    return ret;
+}
+
+my_bool STDCALL _hs_mysql_rollback(MYSQL * mysql)
+{
+    my_bool ret;
+    block_rts_signals();
+    ret = mysql_rollback(mysql);
+    unblock_rts_signals();
+    return ret;
+}
+
 my_bool STDCALL _hs_mysql_autocommit(MYSQL *mysql, my_bool auto_mode)
 {
     my_bool ret;
     return ret;
 }
 
+void STDCALL _hs_mysql_free_result(MYSQL_RES *result)
+{
+    block_rts_signals();
+    mysql_free_result(result);
+    unblock_rts_signals();
+}
+
 int STDCALL _hs_mysql_next_result(MYSQL *mysql)
 {
     int ret;