summaryrefslogtreecommitdiff
path: root/project2/fileRows.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-12-15 01:54:01 +0000
committerrandomdan <randomdan@localhost>2010-12-15 01:54:01 +0000
commitf64b66b7a079aa4aae8c60b4af9c7b6864d72e2c (patch)
tree4aa35e366abc5b03110fbd6af6a17a012faf35da /project2/fileRows.cpp
parentAll new fangled iterators, views, row engines, exceptions, the list goes on (diff)
downloadproject2-f64b66b7a079aa4aae8c60b4af9c7b6864d72e2c.tar.bz2
project2-f64b66b7a079aa4aae8c60b4af9c7b6864d72e2c.tar.xz
project2-f64b66b7a079aa4aae8c60b4af9c7b6864d72e2c.zip
Add support for non-default Sql merge inserter
and row numbers in row sets and functional row properties in variables and custom column sub/super sets in views and isNull by column name Fix somee constnesses
Diffstat (limited to 'project2/fileRows.cpp')
-rw-r--r--project2/fileRows.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/project2/fileRows.cpp b/project2/fileRows.cpp
index 2f4d6cf..3a16ed6 100644
--- a/project2/fileRows.cpp
+++ b/project2/fileRows.cpp
@@ -51,6 +51,7 @@ _FileRows::getColumnName(unsigned int col) const
void
_FileRows::execute(const RowProcessor * rp) const
{
+ rowNum = 0;
FileStarChannel c(doOpen());
c.set_encoding(encoding);
c.set_line_term(newline);
@@ -105,6 +106,7 @@ _FileRows::execute(const RowProcessor * rp) const
curCol++;
}
rp->rowReady();
+ rowNum += 1;
}
values.clear();
}
@@ -122,6 +124,12 @@ _FileRows::isNull(unsigned int col) const
return false;
}
+bool
+_FileRows::isNull(const Glib::ustring & col) const
+{
+ return false;
+}
+
const Glib::ustring &
_FileRows::getCurrentValue(const Glib::ustring & id) const
{