You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get following error: PDOException: SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes.
It occurs when I run codeception tests using Postgres database.
So I tracked down that Postgres PDO driver does not implement ATTR_EMULATE_PREPARES attrbute
It locks like the problem is the checkIntegrity methode in the postgresql QueryBuilder.
This Methode creates a list of SQL alter table commands and set the ATTR_EMULATE_PREPARES attribute to bypass the postgresql native prepare to fire multiple commands in one.
I test it with PHP7.0 (ubuntu 16.04) and postgresql 9.4 it works without an error.
I get following error: PDOException: SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes.
It occurs when I run codeception tests using Postgres database.
So I tracked down that Postgres PDO driver does not implement ATTR_EMULATE_PREPARES attrbute
Stack trace:
#1 /vendor/yiisoft/yii2/db/pgsql/QueryBuilder.php:141
#2 /vendor/yiisoft/yii2/db/Command.php:738
#3 /vendor/yiisoft/yii2/test/InitDbFixture.php:94
#4 /vendor/yiisoft/yii2/test/InitDbFixture.php:76
#5 /vendor/yiisoft/yii2/test/FixtureTrait.php:114
#6 /vendor/yiisoft/yii2-codeception/TestCase.php:83
The text was updated successfully, but these errors were encountered: