Add SQL_EXISTS macro to check if an entry exists.

This commit is contained in:
JoelKatz
2012-06-18 10:56:26 -07:00
parent ec9308bbb8
commit 2a28428409

View File

@@ -10,6 +10,9 @@
if ((_db)->executeSQL(_strQuery)) \
for (bool _bMore = (_db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
#define SQL_EXISTS(_db, _strQuery) \
((_db)->executeSQL(_strQuery) && (_db)->startIterRows())
/*
this maintains the connection to the database
*/