Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql, Code generation and default Tmestamp value "current_date" #1448

Open
Parabellum1905y opened this issue Feb 19, 2016 · 2 comments

Comments

@Parabellum1905y
Copy link

Hello.
I have some table created with this code:
CREATE SEQUENCE test_id_seq;
CREATE TABLE TEST (
id bigint default nextval('test_id_seq'),
userId bigint NOT NULL,
createDate timestamp NOT NULL default current_date,
Primary Key (id),

Foreign Key (userId) references USERS (UserID)

);

during code generation the error raised :

[DEBUG] SlickException: Could not parse default value Some(('now'::text)::date) for column test.createdate of type java.sql.Timestamp, meta data: MColumn(MQName(public.test),createdate,93,timestamp,Some(29),Some(6),10,Some(false),None,Some(('now'::text)::date),29,6,Some(false),None,None,Some(false))
Where can i override parsing default value for dates and timestamps?

@cvogt
Copy link
Member

cvogt commented Feb 19, 2016

related to #1146

@hvesalai hvesalai added this to the Next fix release milestone Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants