mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Make example runnable with dialect-3 employee database
This commit is contained in:
parent
d0a55a4569
commit
f9297d19f1
@ -83,7 +83,7 @@ int main (int argc, char** argv)
|
||||
}
|
||||
|
||||
/* Prepare the statement. */
|
||||
if (isc_dsql_prepare(status, &trans, &double_budget, 0, prep_str, 1, NULL))
|
||||
if (isc_dsql_prepare(status, &trans, &double_budget, 0, prep_str, 3, NULL))
|
||||
{
|
||||
ERREXIT(status, 1)
|
||||
}
|
||||
@ -99,7 +99,7 @@ int main (int argc, char** argv)
|
||||
{
|
||||
printf("\nExecuting statement:\n%d:\t%s;\n", n, exec_str);
|
||||
|
||||
if (isc_dsql_execute_immediate(status, &DB, &trans, 0, exec_str, 1, NULL))
|
||||
if (isc_dsql_execute_immediate(status, &DB, &trans, 0, exec_str, 3, NULL))
|
||||
{
|
||||
ERREXIT(status, 1)
|
||||
}
|
||||
@ -110,7 +110,7 @@ int main (int argc, char** argv)
|
||||
*/
|
||||
printf("\nExecuting a prepared statement:\n\t%s;\n\n", prep_str);
|
||||
|
||||
if (isc_dsql_execute(status, &trans, &double_budget, 1, NULL))
|
||||
if (isc_dsql_execute(status, &trans, &double_budget, 3, NULL))
|
||||
{
|
||||
ERREXIT(status, 1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user