Dear all,
I'm facing an error by creating a new table with a file within a XS app.
file name: new.hdbtable
table.schemaName = "NEO_xxxxxxxxxxxxxxxxxxxxx";
table.tableType = COLUMNSTORE;
table.columns = [
{name = "id"; sqlType = INTEGER; nullable = false;},
{name = "text"; sqlType = SHORTTEXT;}
];
table.primaryKey.pkcolumns = ["id"];
The given message:
Error while activating:
Repository: Internal error during statement execution, please see the database error traces for additional details;sql syntax error: incorrect syntax near "NULL": line 1 col 112 (at pos 112) at qp_gram.y:40123,ALTER TABLE "NEO_xxxxxxxxxxxxx"."s000xxxxxxxxxxtrial.xxxxxxxx.new.data::new" ADD ("text" SHORTTEXT NULL)
SHORTTEXT is allowed column type, but I'm still receiving the message. As soon as I change the type to TEXT the table is successfully activated.
Is there any specific reason for this?
Thanks & Regards,
Martin