Mercurial > hg > orthanc
comparison Core/SQLite/Statement.cpp @ 724:96a2d2da0fee
more sqlite tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Feb 2014 16:55:10 +0100 |
parents | 2d0a347e8cfc |
children | a811bdf8b8eb |
comparison
equal
deleted
inserted
replaced
723:0da078f3affc | 724:96a2d2da0fee |
---|---|
293 return false; | 293 return false; |
294 val->assign(reinterpret_cast<const char16*>(data), len); | 294 val->assign(reinterpret_cast<const char16*>(data), len); |
295 return true; | 295 return true; |
296 }*/ | 296 }*/ |
297 | 297 |
298 bool Statement::ColumnBlobAsVector(int col, std::vector<char>* val) const | 298 /*bool Statement::ColumnBlobAsVector(int col, std::vector<char>* val) const |
299 { | 299 { |
300 val->clear(); | 300 val->clear(); |
301 | 301 |
302 const void* data = sqlite3_column_blob(GetStatement(), col); | 302 const void* data = sqlite3_column_blob(GetStatement(), col); |
303 int len = sqlite3_column_bytes(GetStatement(), col); | 303 int len = sqlite3_column_bytes(GetStatement(), col); |
304 if (data && len > 0) { | 304 if (data && len > 0) { |
305 val->resize(len); | 305 val->resize(len); |
306 memcpy(&(*val)[0], data, len); | 306 memcpy(&(*val)[0], data, len); |
307 } | 307 } |
308 return true; | 308 return true; |
309 } | 309 }*/ |
310 | 310 |
311 bool Statement::ColumnBlobAsVector( | 311 /*bool Statement::ColumnBlobAsVector( |
312 int col, | 312 int col, |
313 std::vector<unsigned char>* val) const | 313 std::vector<unsigned char>* val) const |
314 { | 314 { |
315 return ColumnBlobAsVector(col, reinterpret_cast< std::vector<char>* >(val)); | 315 return ColumnBlobAsVector(col, reinterpret_cast< std::vector<char>* >(val)); |
316 } | 316 }*/ |
317 | 317 |
318 } | 318 } |
319 } | 319 } |