[libgda/LIBGDA_4.0] GdaBlobOp usage correction
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] GdaBlobOp usage correction
- Date: Tue, 6 Oct 2009 18:45:11 +0000 (UTC)
commit 26bfccb5d9b0da0d927b990a8df8a28652111fe3
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Oct 6 20:36:46 2009 +0200
GdaBlobOp usage correction
libgda/sqlite/gda-sqlite-blob-op.c | 2 +-
libgda/sqlite/gda-sqlite-recordset.c | 3 +-
providers/oracle/gda-oracle-blob-op.c | 298 --------------------
.../skel-implementation/capi/gda-capi-blob-op.c | 2 +-
4 files changed, 4 insertions(+), 301 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-blob-op.c b/libgda/sqlite/gda-sqlite-blob-op.c
index 9dc7b76..05024b0 100644
--- a/libgda/sqlite/gda-sqlite-blob-op.c
+++ b/libgda/sqlite/gda-sqlite-blob-op.c
@@ -283,7 +283,7 @@ gda_sqlite_blob_op_write (GdaBlobOp *op, GdaBlob *blob, glong offset)
#define buf_size 16384
gint nread = 0;
GdaBlob *tmpblob = g_new0 (GdaBlob, 1);
- tmpblob->op = blob->op;
+ gda_blob_set_op (tmpblob, blob->op);
nbwritten = 0;
diff --git a/libgda/sqlite/gda-sqlite-recordset.c b/libgda/sqlite/gda-sqlite-recordset.c
index bf24f71..6dea4b8 100644
--- a/libgda/sqlite/gda-sqlite-recordset.c
+++ b/libgda/sqlite/gda-sqlite-recordset.c
@@ -464,7 +464,8 @@ fetch_next_sqlite_row (GdaSqliteRecordset *model, gboolean do_store, GError **er
else {
GdaBlob *blob;
blob = g_new0 (GdaBlob, 1);
- blob->op = bop;
+ gda_blob_set_op (blob, bop);
+ g_object_unref (bop);
gda_value_take_blob (value, blob);
}
}
diff --git a/providers/skel-implementation/capi/gda-capi-blob-op.c b/providers/skel-implementation/capi/gda-capi-blob-op.c
index d3fdf2f..843ce27 100644
--- a/providers/skel-implementation/capi/gda-capi-blob-op.c
+++ b/providers/skel-implementation/capi/gda-capi-blob-op.c
@@ -193,7 +193,7 @@ gda_capi_blob_op_write (GdaBlobOp *op, GdaBlob *blob, glong offset)
#define buf_size 16384
gint nread = 0;
GdaBlob *tmpblob = g_new0 (GdaBlob, 1);
- tmpblob->op = blob->op;
+ gda_blob_set_op (tmpblob, blob->op);
nbwritten = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]