diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-09-04 16:54:57 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-09-04 16:54:57 +0200 |
commit | 9a717577d06f00bb8a0c7338f7b687540b5e017d (patch) | |
tree | a81207d179392c440b700e86e5d400821e6bac45 /include | |
parent | a33fbbf643a52938063779a35167757a2426446e (diff) | |
download | sqlitexx-9a717577d06f00bb8a0c7338f7b687540b5e017d.tar.gz sqlitexx-9a717577d06f00bb8a0c7338f7b687540b5e017d.tar.bz2 |
some fixes for unsigned int parameters for prepared statements
Diffstat (limited to 'include')
-rw-r--r-- | include/sqlite3xx/connection.hpp | 1 | ||||
-rw-r--r-- | include/sqlite3xx/prepared_statement.hpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/sqlite3xx/connection.hpp b/include/sqlite3xx/connection.hpp index 0d95a7e..c7c1069 100644 --- a/include/sqlite3xx/connection.hpp +++ b/include/sqlite3xx/connection.hpp @@ -71,6 +71,7 @@ class SQLITEXX_LIBEXPORT connection { void prepare_param_declare( const string& stmt, const string& sqltype, prepare::param_treatment& treatment ); void prepared_reset( const string& name ); void prepare_setparam( const string& name, const int pos, const int value ); + void prepare_setparam( const string& name, const int pos, const unsigned int value ); void prepare_setparam( const string& name, const int pos, const char* value ); void prepare_setparam( const string& name, const int pos, const double value ); void prepare_setparam( const string& name, const int pos, const long value ); diff --git a/include/sqlite3xx/prepared_statement.hpp b/include/sqlite3xx/prepared_statement.hpp index 4542941..336adaf 100644 --- a/include/sqlite3xx/prepared_statement.hpp +++ b/include/sqlite3xx/prepared_statement.hpp @@ -71,6 +71,7 @@ namespace prepare { invocation( connection& c, transaction& t, const string& stmt ); invocation &setparam( const int& value, bool nonnull ); + invocation &setparam( const unsigned int& value, bool nonnull ); invocation &setparam( const char* value, bool nonnull ); invocation &setparam( const string& value, bool nonnull ); invocation &setparam( const double& value, bool nonnull ); @@ -104,6 +105,7 @@ class SQLITEXX_LIBEXPORT prepared_stmt { void reset( ); void setparam( const int pos, const int value ); + void setparam( const int pos, const unsigned int value ); void setparam( const int pos, const char* value ); void setparam( const int pos, const double value ); void setparam( const int pos, const long value ); |