You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I want to add a new column to a database (import from csv file using csvread).
With H2 Version 1.4.200 the following was working:
ALTER TABLE TEST_TABLE ADD COLUMN ID BIGINT NOT NULL AUTO_INCREMENT FIRST
I tried this with the latest version 2.0.204. But it is not working.
The error message I get is:
NULL not allowed fo column "ID"; SWL statement:
INSERT INTO "PUBLIC"."TEST_TABLE_COPY_3_0" SELECT NULL, "ROW_NUM", "COLUMN_NUM", "ROW_VALUES" FROM "PUBLIC"."TEST_TABLE" [23502-204]
I did also try:
ALTER TABLE TEST_TABLE ADD COLUMN ID BIGINT GENERATED BY DEFAULT AS IDENTITY FIRST
But it is also not working...
Is this a bug, or do I something wrong here?
Thank you - cheers
The text was updated successfully, but these errors were encountered:
Hi,
I want to add a new column to a database (import from csv file using csvread).
With H2 Version 1.4.200 the following was working:
ALTER TABLE TEST_TABLE ADD COLUMN ID BIGINT NOT NULL AUTO_INCREMENT FIRST
I tried this with the latest version 2.0.204. But it is not working.
The error message I get is:
NULL not allowed fo column "ID"; SWL statement:
INSERT INTO "PUBLIC"."TEST_TABLE_COPY_3_0" SELECT NULL, "ROW_NUM", "COLUMN_NUM", "ROW_VALUES" FROM "PUBLIC"."TEST_TABLE" [23502-204]
I did also try:
ALTER TABLE TEST_TABLE ADD COLUMN ID BIGINT GENERATED BY DEFAULT AS IDENTITY FIRST
But it is also not working...
Is this a bug, or do I something wrong here?
Thank you - cheers
The text was updated successfully, but these errors were encountered: