Update of /cvsroot/monetdb/sql/src/backends/monet4
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21978/src/backends/monet4
Modified Files:
Tag: SQL_2-20
Makefile.ag sql_server.mx
Log Message:
fixed bug in handling null in str_2dec functions
this fixes the bug:
[ 1833286 ] Decimal / NUMERIC (9,2) won't allow initial NULL value
Index: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/Makefile.ag,v
retrieving revision 1.36.2.7
retrieving revision 1.36.2.8
diff -u -d -r1.36.2.7 -r1.36.2.8
--- Makefile.ag 7 Nov 2007 08:23:02 -0000 1.36.2.7
+++ Makefile.ag 16 Nov 2007 20:40:23 -0000 1.36.2.8
@@ -122,7 +122,6 @@
PREFIX =
NAME = _monetdb
SOURCES = monetdb.py.i
- #LIBS = libembeddedsql $(PYTHON_LIBS) $(MONETDB_LIBS) -lmutils -lstream
$(CLIENTS_LIBS) -lMapi
LIBS = libinitmodules STATIC_MODS @SHARED_LIBS@ lib_sql_server
$(EXTRA_LIBS) \
libembeddedsql \
$(MONETDB_LIBS) -lbat -lmutils -lstream $(MONETDB4_LIBS)
-lmonet $(CLIENTS_LIBS) -lMapi $(PYTHON_LIBS)
Index: sql_server.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_server.mx,v
retrieving revision 1.173.2.4
retrieving revision 1.173.2.5
diff -u -d -r1.173.2.4 -r1.173.2.5
--- sql_server.mx 22 Oct 2007 09:39:46 -0000 1.173.2.4
+++ sql_server.mx 16 Nov 2007 20:40:25 -0000 1.173.2.5
@@ -828,8 +828,13 @@
lng value = 0;
if (!dot) {
- GDKerror("\"%s\" is no decimal value (doesn't contain a '.')",
val);
- return GDK_FAIL;
+ if (GDK_STRNIL(val)) {
+ *res = @1_nil;
+ return GDK_SUCCEED;
+ } else {
+ GDKerror("\"%s\" is no decimal value (doesn't contain a
'.')", val);
+ return GDK_FAIL;
+ }
}
value = decimal_from_str(s);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins