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

Modified Files:
      Tag: Nov2009
        sql_types.mx 
Log Message:

Fixed length of timestamp with timezone


Index: sql_types.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_types.mx,v
retrieving revision 1.132.2.1
retrieving revision 1.132.2.2
diff -u -d -r1.132.2.1 -r1.132.2.2
--- sql_types.mx        7 Jan 2010 15:18:49 -0000       1.132.2.1
+++ sql_types.mx        17 Jan 2010 12:47:11 -0000      1.132.2.2
@@ -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