Skip to content

jdbc: escape syntax: stored procedures and functions #82

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

Open
Totktonada opened this issue Nov 2, 2018 · 3 comments
Open

jdbc: escape syntax: stored procedures and functions #82

Totktonada opened this issue Nov 2, 2018 · 3 comments
Labels
blocked Not ready to be implemented jdbc

Comments

@Totktonada
Copy link
Member

Totktonada commented Nov 2, 2018

It is optional for user-defined and vendor-specific functions according to the JDBC standard. It is unclear whether it is required for scalar functions from Appendix C of the standard, so I leave it in the JDBC MVP milestone.

DatabaseMetadata.supportsStoredProcedures and DatabaseMetadata.supportsStoredFunctionsUsingCallSyntax should return true when it will be supported. It is not clear what is the difference btw these methods. AFAIU, the former one is about Appendix C functions, but the latter is about user-defined and vendor-defined functions.

The following DatabaseMetadata methods should return actual subsets of Appendix C functions:

  • getNumericFunctions
  • getStringFunctions
  • getSystemFunctions
  • getTimeDateFunctions
@Totktonada Totktonada added the jdbc label Nov 2, 2018
@Totktonada Totktonada added this to the JDBC MVP milestone Nov 2, 2018
@Totktonada
Copy link
Member Author

Tarantool now does not support stored procedures, but supports functions like max. At least we're able to call them like select max(...) and so it seems it worth to emulate call syntax on the driver side.

@Totktonada
Copy link
Member Author

See also #79.

@Totktonada
Copy link
Member Author

Store procedures / functions are callables that return one or several result set. So the issue is blocked on support of SQL/PSM or some alternative in tarantool itself. I'll move it to a later milestone.

@Totktonada Totktonada added the blocked Not ready to be implemented label Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Not ready to be implemented jdbc
Projects
None yet
Development

No branches or pull requests

1 participant