We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try execute a query with plv8 extension syntax(Postgresql) If i do it with PDO - all good If i do it with \yii\db\Connection - getting error
$sql = CREATE OR REPLACE FUNCTION public.test() RETURNS numeric LANGUAGE plv8 AS $_$ { let param = 1; let param2 = 1 ? 2 : 0; return 1; } $_$;
Error just on operator "? : "
->createCommand($sql)->execute()
all done
SQLSTATE[XX000]: Internal error: 7 ERROR: SyntaxError: Unexpected identifier in /srv/api2/vendor/yiisoft/yii2/db/Schema.php:664 Error Info: Array ( [0] => XX000 [1] => 7 [2] => ERROR: SyntaxError: Unexpected identifier CONTEXT: test() LINE 4: let param2 = 1 $1 2 : 0; }
The text was updated successfully, but these errors were encountered:
When executing with PDO, have you done it like the following?
Yii::$app->db->pdo->exec('YOUR_SQL_HERE')
?
Sorry, something went wrong.
No branches or pull requests
What steps will reproduce the problem?
I try execute a query with plv8 extension syntax(Postgresql)
If i do it with PDO - all good
If i do it with \yii\db\Connection - getting error
Error just on operator "? : "
What is the expected result?
all done
What do you get instead?
The text was updated successfully, but these errors were encountered: