{
return this.real_query(false, str);
}
- public string real_query(bool need_return, string str)
+ /**
+ * need_return
+ 0 = no
+ 1 = yes
+ -1 = don't try.
+ */
+ public string real_query(int need_return, string str)
{
GLib.debug("Before Query : %u : %s\n", this.mysql.errno(), this.mysql.error());
Posix.exit(1);
}
-
+ if (need_return == -1) {
+ return '';
+ }
var rs = mysql.use_result();
//GLib.debug("got %d rows", (int) rs.num_rows());
ret = row[0];
}
- if (!need_return) {
+ if (need_return == 0) {
if (StripApplication.opt_debug_sql) {
GLib.debug("got %s", got_row ? "=Nothing=" : ret);
}