summaryrefslogtreecommitdiff
path: root/libodbcpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-12-14 00:20:38 +0000
committerrandomdan <randomdan@localhost>2010-12-14 00:20:38 +0000
commit704406a36376abd38ef0b1dbe98b9bc93754a389 (patch)
treed28644b82a93e149cadc616b1de003b75e05eda8 /libodbcpp
parentSupport binding null to an SQL command parameter (diff)
downloadlibdbpp-odbc-704406a36376abd38ef0b1dbe98b9bc93754a389.tar.bz2
libdbpp-odbc-704406a36376abd38ef0b1dbe98b9bc93754a389.tar.xz
libdbpp-odbc-704406a36376abd38ef0b1dbe98b9bc93754a389.zip
All new fangled iterators, views, row engines, exceptions, the list goes on
Includes site and console updates to match
Diffstat (limited to 'libodbcpp')
-rw-r--r--libodbcpp/selectcommand.cpp31
1 files changed, 7 insertions, 24 deletions
diff --git a/libodbcpp/selectcommand.cpp b/libodbcpp/selectcommand.cpp
index 9df0046..099fe9c 100644
--- a/libodbcpp/selectcommand.cpp
+++ b/libodbcpp/selectcommand.cpp
@@ -89,45 +89,28 @@ ODBC::SelectCommand::execute()
}
Glib::ustring colName((const char *)_colName, nameLen);
switch (bindType) {
- case -9:
- case -10:
- case SQL_CHAR:
- case SQL_VARCHAR:
- case SQL_LONGVARCHAR:
- {
- columns[col] = new CharArrayColumn(this, colName, col);
- break;
- }
case SQL_DECIMAL:
case SQL_NUMERIC:
case SQL_REAL:
case SQL_FLOAT:
case SQL_DOUBLE:
- {
- columns[col] = new FloatingPointColumn(this, colName, col);
- break;
- }
+ columns[col] = new FloatingPointColumn(this, colName, col);
+ break;
case SQL_SMALLINT:
case SQL_INTEGER:
case SQL_TINYINT:
case SQL_BIGINT:
- {
- columns[col] = new SignedIntegerColumn(this, colName, col);
- break;
- }
+ columns[col] = new SignedIntegerColumn(this, colName, col);
+ break;
case SQL_TIMESTAMP:
case SQL_DATETIME:
case SQL_TYPE_TIME:
case SQL_TYPE_DATE:
case SQL_TYPE_TIMESTAMP:
- {
- columns[col] = new TimeStampColumn(this, colName, col);
- break;
- }
+ columns[col] = new TimeStampColumn(this, colName, col);
+ break;
default:
- throw Error(
- "%s: Bad column type: idx=%d, name=%s, type=%d, size=%ld, dp=%d, null=%d",
- __FUNCTION__, col, _colName, bindType, bindSize, dp, nullable);
+ columns[col] = new CharArrayColumn(this, colName, col);
break;
};
columns[col]->bind();