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

Add integration tests for executing SQL generated using Factory.renderInlined() #1147

Closed
lukaseder opened this Issue Jul 22, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@lukaseder
Copy link
Member

lukaseder commented Jul 22, 2012

Currently, some data types, such as DATE, TIMESTAMP are not correctly inlined

@ghost ghost assigned lukaseder Jul 22, 2012

@lukaseder lukaseder closed this Jul 22, 2012

@lukaseder

This comment has been minimized.

Copy link
Member Author

lukaseder commented Jul 22, 2012

Some extract from a mail by Christopher:

About dates, I don't know if this is the best strategy, but this is what we do:

with formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")

Oracle:
"to_timestamp('" + formatter.format(date) + "','YYYY-MM-dd HH24:MI:SS.FF')"

SQLServer:
"convert(datetime,'" + formatter.format(date) + "',121)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.