mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
refactor(database/pool): warn if using multipleStatements
This commit is contained in:
1 parent
78be0238f5
commit
cea371c90c
1 file changed
+5
@@ -22,6 +22,11 @@ export async function createConnectionPool() {
|
||||
dbVersion = `^5[${result[0].version}]`;
|
||||
|
||||
console.log(`${dbVersion} ^2Database server connection established!^0`);
|
||||
|
||||
if (config.multipleStatements) {
|
||||
console.warn(`multipleStatements is enabled. Used incorrectly, this option may cause SQL injection.\nSee https://github.com/overextended/oxmysql/issues/102)`)
|
||||
}
|
||||
|
||||
} catch (err: any) {
|
||||
const message = err.message.includes('auth_gssapi_client')
|
||||
? `Server requests authentication using unknown plugin auth_gssapi_client.\nSee https://github.com/overextended/oxmysql/issues/213.`
|
||||
|
||||
Reference in new issue
Block a user