diff options
Diffstat (limited to 'odb/mssql/statement.ixx')
-rw-r--r-- | odb/mssql/statement.ixx | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/odb/mssql/statement.ixx b/odb/mssql/statement.ixx index 642a5d7..da9fbd8 100644 --- a/odb/mssql/statement.ixx +++ b/odb/mssql/statement.ixx @@ -18,7 +18,7 @@ namespace odb : statement (c, text, k, process, optimize), status_ (batch == 1 ? 0 : status) { - if (batch != 1 && !empty ()) + if (status_ != 0 && !empty ()) init (skip); } @@ -35,28 +35,8 @@ namespace odb : statement (c, text, k, process, optimize, copy_text), status_ (batch == 1 ? 0 : status) { - if (batch != 1 && !empty ()) + if (status_ != 0 && !empty ()) init (skip); } - - inline unsigned long long update_statement:: - version () - { - unsigned long long r; - - // The value is in the big-endian format. - // - unsigned char* p (reinterpret_cast<unsigned char*> (&r)); - p[0] = version_[7]; - p[1] = version_[6]; - p[2] = version_[5]; - p[3] = version_[4]; - p[4] = version_[3]; - p[5] = version_[2]; - p[6] = version_[1]; - p[7] = version_[0]; - - return r; - } } } |