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
{{ message }}
Repository navigation
GRAILS-8140: Syntax errors in H2 SQL generation #1158
{noformat}
| Error 2011-10-07 00:17:00,907 [Thread-6] ERROR hbm2ddl.SchemaExport - Unsuccessful: create table user (id bigint generated by default as identity, version bigint not null, name varchar(255) not null, today timestamp not null, primary key (id))
| Error 2011-10-07 00:17:00,908 [Thread-6] ERROR hbm2ddl.SchemaExport - Syntax error in SQL statement "CREATE TABLE USER (ID BIGINT GENERATED BY DEFAULT AS IDENTITY, VERSION BIGINT NOT NULL, NAME VARCHAR(255) NOT NULL, TODAY[*] TIMESTAMP NOT NULL, PRIMARY KEY (ID)) "; expected "identifier"; SQL statement:
create table user (id bigint generated by default as identity, version bigint not null, name varchar(255) not null, today timestamp not null, primary key (id)) [42001-147]
| Error 2011-10-07 00:17:00,908 [Thread-6] ERROR hbm2ddl.SchemaExport - Unsuccessful: alter table cases_user add constraint FKF9004B47AE234DD6 foreign key (user_id) references user
| Error 2011-10-07 00:17:00,908 [Thread-6] ERROR hbm2ddl.SchemaExport - Table "USER" not found; SQL statement:
alter table cases_user add constraint FKF9004B47AE234DD6 foreign key (user_id) references user [42102-147]
{noformat}
Activity
graemerocher commentedon Oct 6, 2011
bond said:
Those errors were available in logs just before the app was about to run. This wasn't the case when running the same code against MySQL
Merge pull request apache#1158 from jdaugherty/7.0.x