Changeset: 7eb76d6caeeb for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7eb76d6caeeb
Modified Files:
        sql/server/sql_mvc.c
Branch: ustr
Log Message:

Allow columns of type CHAR to use DISTINCT STRING COLUMN.
I.e., not only VARCHAR/CLOB in all their spellings.


diffs (12 lines):

diff --git a/sql/server/sql_mvc.c b/sql/server/sql_mvc.c
--- a/sql/server/sql_mvc.c
+++ b/sql/server/sql_mvc.c
@@ -1511,7 +1511,7 @@ mvc_ustr(mvc *m, sql_schema *s, sql_colu
        if (sname != NULL && (s = mvc_bind_schema(m, sname)) == NULL)
                return -4;
        TRC_DEBUG(SQL_TRANS, "Ustr: %s %s.%s\n", col->base.name, s->base.name, 
uname);
-       if (col->type.type->eclass != EC_STRING)
+       if (!EC_VARCHAR(col->type.type->eclass))
                return -5;
        sql_ustr *u = find_sql_ustr(m->session->tr, s, uname);
        if (u == NULL)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to