// initialize it with known data..
// that should wipe out dupes.
- var filesize = this.query("SELECT filesize FROM Attachment WHERE id = %d".printf(
+ var filesize = this.exect("SELECT filesize FROM Attachment WHERE id = %d".printf(
int.parse(sid)));
if (int.parse(filesize) < 1) {
GLib.debug("Could not get filesize from id :%s = %s", sid,filesize);
}
if (!need_return) {
- return "";
+ return got_row ? "" : ret;
}
if (!got_row) {
GLib.debug("ERROR : no rows returned");