src/PreparedStatement.cpp
branchv_0
changeset 33 86ceb97db7de
parent 30 629565ff82d3
child 36 91cb012d779a
equal deleted inserted replaced
32:77180ee275df 33:86ceb97db7de
    99 std::string PreparedStatement::getString(int columnIndex) {
    99 std::string PreparedStatement::getString(int columnIndex) {
   100 	const char* value = (const char*) sqlite3_column_text((sqlite3_stmt*) stmt, columnIndex);
   100 	const char* value = (const char*) sqlite3_column_text((sqlite3_stmt*) stmt, columnIndex);
   101 	return value ? value : ""; // TODO: support NULL values (when supported in relpipe format)
   101 	return value ? value : ""; // TODO: support NULL values (when supported in relpipe format)
   102 }
   102 }
   103 
   103 
   104 bool PreparedStatement::isComplete(const char* sql) {
       
   105 	return sqlite3_complete(sql);
       
   106 }
       
   107 
       
   108 }
   104 }
   109 }
   105 }
   110 }
   106 }