[darwinbuild-changes] [707] branches/PR-7489777/darwinup/Database.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 18 16:40:08 PST 2010


Revision: 707
          http://trac.macosforge.org/projects/darwinbuild/changeset/707
Author:   wsiegrist at apple.com
Date:     2010-02-18 16:40:07 -0800 (Thu, 18 Feb 2010)
Log Message:
-----------
Propagate the result code

Modified Paths:
--------------
    branches/PR-7489777/darwinup/Database.cpp

Modified: branches/PR-7489777/darwinup/Database.cpp
===================================================================
--- branches/PR-7489777/darwinup/Database.cpp	2010-02-19 00:30:41 UTC (rev 706)
+++ branches/PR-7489777/darwinup/Database.cpp	2010-02-19 00:40:07 UTC (rev 707)
@@ -500,7 +500,7 @@
 	IF_DEBUG("get_row output(%p) = %llu \n", *output, **(uint64_t**)output);
 	sqlite3_reset(stmt);
 	cache_release_value(m_statement_cache, &stmt);
-	return output == NULL;
+	return res;
 }
 
 int Database::sql(const char* name, const char* fmt, ...) {
@@ -534,7 +534,7 @@
 	res = this->step_once(stmt, *(uint8_t**)output, NULL);
 	sqlite3_reset(stmt);
 	cache_release_value(m_statement_cache, &stmt);	
-	return output == NULL;
+	return res;
 }
 
 /**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100218/6172a16b/attachment.html>


More information about the darwinbuild-changes mailing list