diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 18:10:52 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 18:10:52 +0300 |
commit | ae5a90db9df0cb9f4f2df8218bc1ee81556490ac (patch) | |
tree | 6446af3bdcf112f1687e59313a3ed4d698b7e1cf /libodb-mssql/odb/mssql/statement.ixx | |
parent | 3fa01c83a095f1f5be99189236ec348f5f2fa2c1 (diff) | |
parent | 2895ad78dbdb43e57fc34558b4530b4e105fc72d (diff) |
Merge branch 'libodb-mssql' into multi-package
Diffstat (limited to 'libodb-mssql/odb/mssql/statement.ixx')
-rw-r--r-- | libodb-mssql/odb/mssql/statement.ixx | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libodb-mssql/odb/mssql/statement.ixx b/libodb-mssql/odb/mssql/statement.ixx new file mode 100644 index 0000000..12cce80 --- /dev/null +++ b/libodb-mssql/odb/mssql/statement.ixx @@ -0,0 +1,41 @@ +// file : odb/mssql/statement.ixx +// license : ODB NCUEL; see accompanying LICENSE file + +namespace odb +{ + namespace mssql + { + inline bulk_statement:: + bulk_statement (connection_type& c, + const std::string& text, + statement_kind k, + const binding* process, + bool optimize, + std::size_t batch, + std::size_t skip, + SQLUSMALLINT* status) + : statement (c, text, k, process, optimize), + status_ (batch == 1 ? 0 : status) + { + if (status_ != 0 && !empty ()) + init (skip); + } + + inline bulk_statement:: + bulk_statement (connection_type& c, + const char* text, + statement_kind k, + const binding* process, + bool optimize, + std::size_t batch, + std::size_t skip, + SQLUSMALLINT* status, + bool copy_text) + : statement (c, text, k, process, optimize, copy_text), + status_ (batch == 1 ? 0 : status) + { + if (status_ != 0 && !empty ()) + init (skip); + } + } +} |