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

Modified Files:
      Tag: Feb2010
        sql_types.mx 
Log Message:
propagated changes of Sunday Jan 17 2010 - Monday Jan 18 2010
from the Nov2009 branch to the Feb2010 branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2010/01/17 - nielsnes: src/common/sql_types.mx,1.132.2.2
  
  Fixed length of timestamp with timezone
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql_types.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_types.mx,v
retrieving revision 1.134
retrieving revision 1.134.2.1
diff -u -d -r1.134 -r1.134.2.1
--- sql_types.mx        10 Jan 2010 15:33:34 -0000      1.134
+++ sql_types.mx        18 Jan 2010 10:36:25 -0000      1.134.2.1
@@ -61,9 +61,11 @@
 #define EC_FIXED(e)    (e==EC_BIT||e==EC_CHAR||\
                         e==EC_NUM||e==EC_INTERVAL||e==EC_DEC||EC_TEMP(e))
 
-#define type_has_tz(t) (EC_TEMP((t)->type->eclass) && \
-                       (((t)->type->eclass == EC_TIME && 
strcmp((t)->type->sqlname, "timetz") == 0) || \
-                        ((t)->type->eclass == EC_TIMESTAMP && 
strcmp((t)->type->sqlname, "timestamptz") == 0)) )
+#define has_tz(e,n)    (EC_TEMP(e) && \
+                       ((e == EC_TIME && strcmp(n, "timetz") == 0) || \
+                       (e == EC_TIMESTAMP && strcmp(n, "timestamptz") == 0)) )
+
+#define type_has_tz(t) has_tz((t)->type->eclass, (t)->type->sqlname)
 
 extern list *aliases;
 extern list *types;


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to