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

bug: can not quote the follow sql: "DROP TABLE IF EXISTS <user>;" #1036

Closed
qt06 opened this issue Feb 11, 2022 · 1 comment
Closed

bug: can not quote the follow sql: "DROP TABLE IF EXISTS <user>;" #1036

qt06 opened this issue Feb 11, 2022 · 1 comment
Labels

Comments

@qt06
Copy link

qt06 commented Feb 11, 2022

Information

  • Medoo version 2.1.4
  • php 7.4
  • mysql5.7
  • windows

Describe the Problem
The <>quotation syntax can not used on the sql contains 'exists'. For example:
DROP TABLE IF EXISTS <user>;

Detail Code

$database = new Medoo([
	....
	"prefix" => "WP_"
]);
$database.query("DROP TABLE IF EXISTS <user>;");

Expected output
DROP TABLE IF EXISTS "WP_user";

@catfan
Copy link
Owner

catfan commented May 4, 2022

This is fixed on 00ea59d.

@catfan catfan closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants