Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17858/src/backends/monet5

Modified Files:
        sql.mx 
Log Message:
propagated changes of Thursday Nov 15 2007 - Saturday Nov 17 2007
from the SQL_2-20 branch to the development trunk



Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.238
retrieving revision 1.239
diff -u -d -r1.238 -r1.239
--- sql.mx      6 Nov 2007 23:29:39 -0000       1.238
+++ sql.mx      17 Nov 2007 16:32:56 -0000      1.239
@@ -1927,8 +1927,13 @@
        lng value = 0;
 
        if (!dot) {
-               throw(SQL, "@1", 
-                       "\"%s\" is no decimal value (doesn't contain a '.')", 
*val);
+               if (GDK_STRNIL(*val)) {
+                       *res = @1_nil;
+                       return MAL_SUCCEED;
+               } else {
+                       throw(SQL, "@1", 
+                               "\"%s\" is no decimal value (doesn't contain a 
'.')", *val);
+               }
        }
                
        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

Reply via email to