Changeset: 1ec3f6727269 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1ec3f6727269
Modified Files:
        
Branch: 
Log Message:

fixed bug #2534 (handle type wrd in atom_cast)


diffs (63 lines):

diff -r 6e229768e78d -r 1ec3f6727269 sql/src/server/sql_atom.mx
--- a/sql/src/server/sql_atom.mx        Mon May 17 23:04:06 2010 +0200
+++ b/sql/src/server/sql_atom.mx        Tue May 18 12:54:12 2010 +0200
@@ -555,6 +555,9 @@
                                        return 0;
                                break;
                        case TYPE_int:
+#if SIZEOF_WRD == SIZEOF_INT
+                       case TYPE_wrd:
+#endif
                                if (at->type->localtype == TYPE_bte) 
                                        a->data.val.ival = a->data.val.btval;
                                else if (at->type->localtype == TYPE_sht) 
@@ -563,6 +566,9 @@
                                        return 0;
                                break;
                        case TYPE_lng:
+#if SIZEOF_WRD == SIZEOF_LNG
+                       case TYPE_wrd:
+#endif
                                if (at->type->localtype == TYPE_bte) 
                                        a->data.val.lval = a->data.val.btval;
                                else if (at->type->localtype == TYPE_sht) 
@@ -597,6 +603,9 @@
                                        return 0;
                                break;
                        case TYPE_int:
+#if SIZEOF_WRD == SIZEOF_INT
+                       case TYPE_wrd:
+#endif
                                if (at->type->localtype == TYPE_bte) 
                                        a->data.val.ival = a->data.val.btval;
                                else if (at->type->localtype == TYPE_sht) 
@@ -605,6 +614,9 @@
                                        return 0;
                                break;
                        case TYPE_lng:
+#if SIZEOF_WRD == SIZEOF_LNG
+                       case TYPE_wrd:
+#endif
                                if (at->type->localtype == TYPE_bte) 
                                        a->data.val.lval = a->data.val.btval;
                                else if (at->type->localtype == TYPE_sht) 
@@ -676,6 +688,9 @@
                                        return 0;
                                break;
                        case TYPE_int:
+#if SIZEOF_WRD == SIZEOF_INT
+                       case TYPE_wrd:
+#endif
                                if (at->type->localtype == TYPE_bte) 
                                        a->data.val.ival = a->data.val.btval;
                                else if (at->type->localtype == TYPE_sht) 
@@ -684,6 +699,9 @@
                                        return 0;
                                break;
                        case TYPE_lng:
+#if SIZEOF_WRD == SIZEOF_LNG
+                       case TYPE_wrd:
+#endif
                                if (at->type->localtype == TYPE_bte) 
                                        a->data.val.lval = a->data.val.btval;
                                else if (at->type->localtype == TYPE_sht) 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to