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

Can't insert a new entry to my db #20

Open
Toneq opened this issue Aug 13, 2019 · 3 comments
Open

Can't insert a new entry to my db #20

Toneq opened this issue Aug 13, 2019 · 3 comments

Comments

@Toneq
Copy link

Toneq commented Aug 13, 2019

Hey!
I have a problem with INSERT INTO because it doesn't insert a line in mysql.
It does not work only with the variables entered. There are no errors in the console.

Plugin: Skript(2.4-beta5), SkQuery, WildSkript, ProtocolLib, WorldEdit, WorldGuard, skDragon, SkUtilities, skRayFall, skript-db

My database query:
execute "INSERT INTO sk_guild (Name, Value, Player) VALUES ('%{_name}%::position', 'Lider', '%player%')" in {sql}

@btk5h
Copy link
Owner

btk5h commented Aug 14, 2019

You cannot interpolate expressions into SQL string literals.

@Toneq
Copy link
Author

Toneq commented Aug 14, 2019

so how can I do that to work?

@github-usrname
Copy link

github-usrname commented Feb 5, 2020

Obviously , the Owner of the " Skript-db " never Worked with PHP , what do you mean , " We cannot Interpolate expressions into SQL string " in PHP afcourse we can
Sample: $PRO = "INSERT".$notPRO.'Limit 1;';
then SQL return >>> Affected 1 Row
which means , Everything is Fine , and DB insert has been SUCCESSFULL !
and the Owner Must Find a way to Fix this , this is MAIN ISSUE if you ask me , OTherwise Go into your REPO and DELETE FULLY DYNAMIC QUERY because its not DYNAMIC OTHERWISE !!!!!!!!!!! this is Verry Important !!!!!!!!!

So i have the same ISSUE !!!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants