-
Notifications
You must be signed in to change notification settings - Fork 5
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
Strange problem with execute. #3
Comments
Remove the single quotes around the variable, skript-db will handle that for you. |
@Snow-Pyon still not working, this is not a problem. |
Last sql error: |
What code are you using? Did you try
|
Yes, I tried all the possibilities. Your code also doesn't working. Still same error: Maybe the error applies to this code: Database structure: https://scr.hu/el1MJ0 I've used skellett before, but on version 1.12.X, skellett's mysql doesn't working. |
Wait, does this mean you're not sure which line of code is causing this error? |
I checked this. These two codes evoke this error. Than i run server without this code: I dont know what I'm doing wrong. |
When the problem will be fixed? |
|
UP |
This is still a problem. In my case, running this yields the error: |
https://www.w3schools.com/sql/ This is From the Owners of MYSQL n PHP |
@github-usrname This addon is a wrapper around Java's prepared statements. I understand that the semantics of how skript-db inlines parameters may be a bit confusing, but the goal is to ultimately prevent users from accidentally leaving themselves vulnerable to SQL injection attacks, which can happen when naively concatenating strings to form SQL queries. You can already opt-out of this behavior by using |
check your @mail |
@github-usrname, harassing me by email won't get you anywhere. If you want to have a civilized discussion, we can have one here or in a new issue. I'm not going to bother reading an angry comment left by someone who clearly doesn't want to cooperate. |
Hi, before I start, I want to say that I tried everything to fix it, but Skript fooled me and I have no idea what's going on...
execute "SELECT * FROM playerdata WHERE playername = 'SzymoonPL';" in {mysql} and store the result in {_output::*}
set {_final} to {_output::playername::1}
broadcast "%{_final}%"
This code works correctly, but... When i replace my nickname with variable or type event-player or player, this code stop working.
execute "SELECT * FROM playerdata WHERE playername = '%{_p}%';" in {mysql} and store the result in {_output::*}
set {_final} to {_output::playername::1}
broadcast "%{_final}%"
In the first situation, the variable displays my name, but in the second - still appears
<none>
.Idk what happend, my brain exploded...
If you still dont understand, I'll try to explain more.
Hold on and Happy New Year :)
The text was updated successfully, but these errors were encountered: