summaryrefslogtreecommitdiff
path: root/statement.c
diff options
context:
space:
mode:
authorHiroshi Inoue2010-11-10 21:47:48 +0000
committerHiroshi Inoue2010-11-10 21:47:48 +0000
commit5978dd7be95c5ae79589b032030af4e5de7848e9 (patch)
tree1299e0301f75db4f984ecb9392d76b95aea78260 /statement.c
parent9d29209b4c24e0fe0658fc5b5a0b7ea9f418769a (diff)
Fix the bug introduced by the previous change reprted by Adrien de Croy.
Diffstat (limited to 'statement.c')
-rw-r--r--statement.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/statement.c b/statement.c
index 9a760ef..1229901 100644
--- a/statement.c
+++ b/statement.c
@@ -207,7 +207,8 @@ PGAPI_AllocStmt(HDBC hdbc,
}
else
{
- stmt->options_orig = stmt->options;
+ InitializeStatementOptions(&stmt->options_orig);
+ stmt->options = stmt->options_orig;
InitializeARDFields(&stmt->ardi.ardopts);
}
ardopts = SC_get_ARDF(stmt);