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

Support JDBC date, time and timestamp escape sequences #736

Open
Chrriis opened this issue May 24, 2022 · 3 comments
Open

Support JDBC date, time and timestamp escape sequences #736

Chrriis opened this issue May 24, 2022 · 3 comments
Labels
enhancement:JDBC Enhancement specific to the JDBC standard

Comments

@Chrriis
Copy link

Chrriis commented May 24, 2022

JDBC drivers support the JDBC Date, Time, and Timestamp escape sequences.

Thus, the following is supposed to work using JDBC drivers (sometimes with addition of "FROM DUAL"):
SELECT {d '2016-06-29'}, {ts '2016-06-29 11:07:35.123'}

Unfortunately, it is not supported by this driver. This causes compatibility issue where standard JDBC SQL fails.

@gotson
Copy link
Collaborator

gotson commented Jul 26, 2022

This causes compatibility issue where standard JDBC SQL fails.

Can you expand on that? Is that when using a framework?

@gotson gotson added the enhancement:JDBC Enhancement specific to the JDBC standard label Jul 26, 2022
@Chrriis
Copy link
Author

Chrriis commented Jul 26, 2022

Can you expand on that? Is that when using a framework?

Well, it is standard JDBC, so any tool relying on that could fail. Also, when one has to send date or timestamp in a query, this is a syntax that is compatible whatever the database is.

In my specific case, we use a proprietary framework that is using this syntax internally.

@gotson
Copy link
Collaborator

gotson commented Nov 25, 2022

That would be quite difficult to implement, it would require a SQL parser in order to find and replace the escape sequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement:JDBC Enhancement specific to the JDBC standard
Projects
None yet
Development

No branches or pull requests

2 participants