Menu

#1 Only one default column when generating SQL tables.

open
nobody
None
5
2007-10-01
2007-10-01
No

When generating SQL "create table" statements, it is possible to define a default column name. See crd_sql_tst.cpp :

join_SAMPL3_T join_SAM_obj( wrapNams, "Unknown" );

But it does not make sens because the column names must be different. So, if several column names are not specified, the same default column name will be duplicated - this is what happens in the test:

"CREATE TABLE Table3 (INT INTEGER,CHR CHAR(1),Unknown CHAR(10),Unknown NUMBER(10.3))"

The fix is to provide, not one column name, but an iterator on columns, or a generator of column names.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB