aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/statement.c
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2001-11-05 09:46:17 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2001-11-05 09:46:17 +0000
commitc0b27c4feb286729613401302e58974f20e05f8f (patch)
treed73c3daa4b734b872acd1304454b268f99515cc1 /src/interfaces/odbc/statement.c
parent0f450dae8b46ebbe1f5a0add1d96333894a17995 (diff)
downloadpostgresql-c0b27c4feb286729613401302e58974f20e05f8f.tar.gz
postgresql-c0b27c4feb286729613401302e58974f20e05f8f.zip
1) Fix a few bugs about SQLGetData()
reported by Mika Mantyla. 2) Timestamp precision. 3) Separate ODBC3.0 files.
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r--src/interfaces/odbc/statement.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c
index b4e33d05923..b2798506785 100644
--- a/src/interfaces/odbc/statement.c
+++ b/src/interfaces/odbc/statement.c
@@ -320,7 +320,15 @@ SC_Destructor(StatementClass *self)
*/
/* about that here. */
if (self->bindings)
+ {
+ int lf;
+ for (lf = 0; lf < self->bindings_allocated; lf++)
+ {
+ if (self->bindings[lf].ttlbuf != NULL)
+ free(self->bindings[lf].ttlbuf);
+ }
free(self->bindings);
+ }
/* Free the parsed table information */
if (self->ti)