summaryrefslogtreecommitdiffstats
path: root/src/dal
diff options
context:
space:
mode:
authorHuynh Tran <nthuynh75@gmail.com>2005-06-28 21:17:36 +0000
committerHuynh Tran <nthuynh75@gmail.com>2005-06-28 21:17:36 +0000
commitf83980082a8ee69b1356f58159867e1313ebf868 (patch)
treeef1def3a2412c64c1cf49bb02a864e8e6d709f40 /src/dal
parent69979fb043a4dbaa1fb3f40584c6ad2a0cb5d39e (diff)
downloadmanaserv-f83980082a8ee69b1356f58159867e1313ebf868.tar.gz
manaserv-f83980082a8ee69b1356f58159867e1313ebf868.tar.xz
manaserv-f83980082a8ee69b1356f58159867e1313ebf868.zip
Fixed bugs and added new unit tests.
Diffstat (limited to 'src/dal')
-rw-r--r--src/dal/recordset.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dal/recordset.cpp b/src/dal/recordset.cpp
index ae335f5..f404c2a 100644
--- a/src/dal/recordset.cpp
+++ b/src/dal/recordset.cpp
@@ -69,10 +69,7 @@ RecordSet::clear(void)
bool
RecordSet::isEmpty(void) const
{
- // we just need to check the size of the list of column headers
- // as it is not possible to insert a new record if the column
- // headers are not defined.
- return (mHeaders.size() == 0);
+ return (mRows.size() == 0);
}