Oops I forgot to set the value to the buffer.
authorHiroshi Inoue <inoue@tpf.co.jp>
Wed, 29 Oct 2008 13:40:54 +0000 (13:40 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Wed, 29 Oct 2008 13:40:54 +0000 (13:40 +0000)
convert.c

index 23c033d2fbb7a2897861d867e545b480265c914c..f0f7833e64bea21c9698ea96a25a64884ec7f9ea 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -1557,6 +1557,11 @@ inolog("SQL_C_VARBOOKMARK value=%d\n", ival);
                    mylog("Could not convert to SQL_C_GUID");   
                    return  COPY_UNSUPPORTED_TYPE;
                }
+               len = sizeof(g);
+               if (bind_size > 0)
+                   *((SQLGUID *) rgbValueBindRow) = g;
+               else
+                   *((SQLGUID *) rgbValue + bind_row) = g;
                break;
 #endif /* ODBCVER */