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 example for CallablePreparedStatement #2920

Closed
1 task done
vagetablechicken opened this issue Dec 29, 2022 · 0 comments · Fixed by #3220
Closed
1 task done

add example for CallablePreparedStatement #2920

vagetablechicken opened this issue Dec 29, 2022 · 0 comments · Fixed by #3220
Assignees
Labels
java Pull requests that update Java code sdk openmldb java/python sdk

Comments

@vagetablechicken
Copy link
Collaborator

vagetablechicken commented Dec 29, 2022

CallablePreparedStatement -> RequestPreparedStatement -> PreparedStatement
It can do

stmt = create()
for i:
  stmt.setXX()
  stmt.executeQuery() # in dataBuild, it'll clearParameters()
  • Add a best practice and ut for it.

It's not good to create the stmt every time, cuz ctor is a little complex.

public CallablePreparedStatement(String db, String spName, SQLRouter router) throws SQLException {

@aceforeverd aceforeverd added java Pull requests that update Java code sdk openmldb java/python sdk labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code sdk openmldb java/python sdk
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants