SQL Exception when running Minecraft plugin
So I have this sql script
When I use the IntelliJ SQL console and execute it there, everything works fine. But when I try to execute it via
PreparedStatement
then it shows an error in the console..
Error
12 Replies
⌛
This post has been reserved for your question.
Hey @TomasGnG 😴! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
This is my whole DataSource class
Are you running the script or the statements?
statements
wait
so, your init() does only one of them?
i run the whole script
does that not work?
PreparedStatements can't do that. It's for one statement
Ah
There might be a statement syntax for running a script file
Works perfectly now, thanks
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@386870647894048768>.