[libgdamm] Value::set_binary(): reinit the type.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdamm] Value::set_binary(): reinit the type.
- Date: Wed, 21 Sep 2011 07:38:06 +0000 (UTC)
commit 3804e58d690ee58a99a0a632f64e4fd5fb321e91
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Sep 21 08:46:25 2011 +0200
Value::set_binary(): reinit the type.
* libgda/libgdamm/value.cc: Call value_reinit(), as we do in other set()
methods.
ChangeLog | 7 +++++++
libgda/libgdamm/value.cc | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 29985a1..897c2d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,13 @@
unsets the src, because it is the same gobject, and then we reject that
src as invalid.
+2011-09-21 Murray Cumming <murrayc murrayc com>
+
+ Value::set_binary(): reinit the type.
+
+ * libgda/libgdamm/value.cc: Call value_reinit(), as we do in other set()
+ methods.
+
4.99.3.1:
2011-07-04 Murray Cumming <murrayc murrayc com>
diff --git a/libgda/libgdamm/value.cc b/libgda/libgdamm/value.cc
index b2e79b7..fb1cad3 100644
--- a/libgda/libgdamm/value.cc
+++ b/libgda/libgdamm/value.cc
@@ -296,6 +296,8 @@ const guchar* Value::get_binary(long& size) const
void Value::set(const guchar* val, long size)
{
+ value_reinit(gobj(), GDA_TYPE_BINARY);
+
GdaBinary gdabinary;
gdabinary.data = const_cast<guchar*>(val);
gdabinary.binary_length = size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]