Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20744/server

Modified Files:
      Tag: SQL_2-24
        sql_statement.mx 
Log Message:
The table name was missing on the query output:
% sky. # table_name

Now it is like this:
% sky.rc3 # table_name

Solution is to look into the base column...
/* there are no table aliases, ie look into the base column */


U sql_statement.mx
Index: sql_statement.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_statement.mx,v
retrieving revision 1.165.2.2
retrieving revision 1.165.2.3
diff -u -d -r1.165.2.2 -r1.165.2.3
--- sql_statement.mx    17 Jun 2008 08:37:30 -0000      1.165.2.2
+++ sql_statement.mx    1 Jul 2008 10:23:01 -0000       1.165.2.3
@@ -2596,8 +2596,9 @@
        case st_alias:
                if (st->op2.stval)
                        return table_name(st->op2.stval);
-               return NULL;
-
+               else
+                       /* there are no table aliases, ie look into the base 
column */
+                       return table_name(st->op1.stval);
        case st_atom:
                if (st->op1.aval->data.vtype == TYPE_str && 
st->op1.aval->data.val.sval && _strlen(st->op1.aval->data.val.sval))
                        return atom2string(st->op1.aval);


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to