Mercurial > hg > orthanc
comparison Core/SQLite/Statement.cpp @ 80:6212bf978584
status of series
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Sep 2012 15:18:12 +0200 |
parents | c996319e90bc |
children | 0e97abc7b950 |
comparison
equal
deleted
inserted
replaced
79:297bad4e1019 | 80:6212bf978584 |
---|---|
213 return COLUMN_TYPE_BLOB; | 213 return COLUMN_TYPE_BLOB; |
214 | 214 |
215 return COLUMN_TYPE_NULL; | 215 return COLUMN_TYPE_NULL; |
216 } | 216 } |
217 | 217 |
218 bool Statement::ColumnIsNull(int col) const | |
219 { | |
220 return sqlite3_column_type(GetStatement(), col) == SQLITE_NULL; | |
221 } | |
222 | |
218 bool Statement::ColumnBool(int col) const | 223 bool Statement::ColumnBool(int col) const |
219 { | 224 { |
220 return !!ColumnInt(col); | 225 return !!ColumnInt(col); |
221 } | 226 } |
222 | 227 |