Example #1
0
void mysql_statement::write(const char *, const varchar_base &x)
{
  bind_value(host_array[host_index], MYSQL_TYPE_VAR_STRING, x.c_str(), x.size(), host_index);
  ++host_index;
}
Example #2
0
void sqlite_statement::write(const char*, const varchar_base &x)
{
  int ret = sqlite3_bind_text(stmt_, ++host_index, x.c_str(), x.size(), 0);
  throw_error(ret, db_(), "sqlite3_bind_text");
}