Update of /cvsroot/monetdb/sql/src/server
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv820/src/server

Modified Files:
        sql_schema.mx 
Log Message:
propagated changes of Wednesday Dec 02 2009
from the Nov2009 branch to the development trunk

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/12/02 - sjoerd: src/server/sql_schema.mx,1.181.2.2
  Removed superfluous NULL check: if impl==NULL, we would have gotten a
  crash in the call to mvc_create_type.
  Found by Coverity.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql_schema.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_schema.mx,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- sql_schema.mx       12 Nov 2009 08:39:47 -0000      1.182
+++ sql_schema.mx       2 Dec 2009 13:06:14 -0000       1.183
@@ -479,9 +479,7 @@
        char *tname = qname_table(qname);
 
        if (!mvc_create_type(sql, sql->session->schema, tname, 0, 0, 0, impl)) {
-               if (impl)
-                       return sql_error(sql, 02, "CREATE TYPE: unknown 
external type '%s'", impl);
-               return NULL;
+               return sql_error(sql, 02, "CREATE TYPE: unknown external type 
'%s'", impl);
        }
        return stmt_none();
 }


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to