diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-19 13:54:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-19 13:54:39 +0200 |
commit | 0aa976237df26be9415c5aac335ab43e026db077 (patch) | |
tree | 31287238d51a0eb5e056fb8b26ca9cbbc646dca2 /mssql/stored-proc/test.hxx | |
parent | 092cb7d916b8ebc83cacab849010acd04f56d38d (diff) |
Allow empty runtime and execute views
Use them to handle INSERT/UPDATE SQL Server stored procedures.
Diffstat (limited to 'mssql/stored-proc/test.hxx')
-rw-r--r-- | mssql/stored-proc/test.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mssql/stored-proc/test.hxx b/mssql/stored-proc/test.hxx index 16f3c52..d302630 100644 --- a/mssql/stored-proc/test.hxx +++ b/mssql/stored-proc/test.hxx @@ -28,6 +28,9 @@ struct object std::string str; }; +#pragma db view +struct no_result {}; + #pragma db view query("EXEC select_all_objects") struct select_all_objects { @@ -48,8 +51,11 @@ struct objects_min_max unsigned int num_max; }; -#pragma db view query("EXEC insert_object_odb (?)") -struct insert_object +#pragma db view query("EXEC insert_object (?)") +struct insert_object {}; + +#pragma db view query("EXEC insert_object_id_odb (?)") +struct insert_object_id { unsigned int ret; unsigned long id; |