Sorry for my bad english i'm french I need a litle help :-)
I've got a java.sql.SQLSyntaxErrorException
but I can't find what's going on.
Here is the trace :
org.springframework.jdbc.datasource.init.ScriptStatementFailedException:
Failed to execute SQL script statement #1 of class path resource
[ddl/ddl-table.sql]: CREATE TABLE user_klesia(noss varchar(15),email
varchar(45),tel_fixe varchar(20),tel_mobile varchar(20)
,statut_consentement varchar(20) ,consentement_offres_date timestamp
NULL,certification_date timestamp NULL,derniere_tentative_date
timestamp NULL,id_web bigint(20) NOT NULL AUTO_INCREMENT,certifie
int(1) DEFAULT '0',date_naissance date ,origine varchar(2) DEFAULT
'K',question_secrete varchar(45),reponse_secrete
varchar(45),liferay_user_id bigint(20),nom varchar(200),prenom
varchar(200),indicateur_tel_fixe varchar(20),code_pays_fixe
varchar(4),indicateur_tel_mobile varchar(20),code_pays_mobile
varchar(4),civilite varchar(15),id_indv_ur
bigint(20),blocage_compte_date timestamp NULL,nb_tentatives
int(1),id_indv_alloc bigint(20),question_certifiante varchar(200)
,reponse_certifiante varchar(200) ,mode_certification varchar(20)
,otp_certifiant varchar(10) ,email_date_maj timestamp NULL
,tel_fixe_date_maj timestamp NULL ,tel_mobile_date_maj timestamp NULL
,id_individu bigint(20),france_connect varchar(45) ,sub varchar(255)
,sso_ima int(1),PRIMARY KEY (id_web)); nested exception is
java.sql.SQLSyntaxErrorException: unexpected token: (
at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:492)
at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:240)
at org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:48)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.initDatabase(EmbeddedDatabaseFactory.java:200)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.getDatabase(EmbeddedDatabaseFactory.java:157)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder.build(EmbeddedDatabaseBuilder.java:270)
at fr.koudama.batch.excellent.test.launchJob(test.java:82)
This is my SQL statement:
CREATE TABLE user_klesia(noss varchar(15),
email varchar(45),
tel_fixe varchar(20),
tel_mobile varchar(20),
statut_consentement varchar(20),
consentement_offres_date timestamp NULL,
certification_date timestamp NULL,
derniere_tentative_date timestamp NULL,
id_web bigint(20) NOT NULL AUTO_INCREMENT,
certifie int(1) DEFAULT '0',
date_naissance date,
origine varchar(2) DEFAULT 'K',
question_secrete varchar(45),
reponse_secrete varchar(45),
liferay_user_id bigint(20),
nom varchar(200),
prenom varchar(200),
indicateur_tel_fixe varchar(20),
code_pays_fixe varchar(4),
indicateur_tel_mobile varchar(20),
code_pays_mobile varchar(4),
civilite varchar(15),
id_indv_ur bigint(20),
blocage_compte_date timestamp NULL,
nb_tentatives int(1),
id_indv_alloc bigint(20),
question_certifiante varchar(200),
reponse_certifiante varchar(200),
mode_certification varchar(20),
otp_certifiant varchar(10),
email_date_maj timestamp NULL,
tel_fixe_date_maj timestamp NULL,
tel_mobile_date_maj timestamp NULL,
id_individu bigint(20),
france_connect varchar(45),
sub varchar(255),
sso_ima int(1),
PRIMARY KEY (id_web));