{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12982","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12982/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12982/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12982/events","html_url":"https://github.com/yiisoft/yii2/issues/12982","id":188923674,"number":12982,"title":"testBindParamValue test is failing with PostgreSQL and HHVM 3.15.2","user":{"login":"arogachev","id":8326201,"avatar_url":"https://avatars.githubusercontent.com/u/8326201?v=3","gravatar_id":"","url":"https://api.github.com/users/arogachev","html_url":"https://github.com/arogachev","followers_url":"https://api.github.com/users/arogachev/followers","following_url":"https://api.github.com/users/arogachev/following{/other_user}","gists_url":"https://api.github.com/users/arogachev/gists{/gist_id}","starred_url":"https://api.github.com/users/arogachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arogachev/subscriptions","organizations_url":"https://api.github.com/users/arogachev/orgs","repos_url":"https://api.github.com/users/arogachev/repos","events_url":"https://api.github.com/users/arogachev/events{/privacy}","received_events_url":"https://api.github.com/users/arogachev/received_events","type":"User","site_admin":false},"labels":[{"id":295699936,"url":"https://api.github.com/repos/yiisoft/yii2/labels/PostgreSQL","name":"PostgreSQL","color":"006b75","default":false},{"id":33208443,"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8","default":false},{"id":33241305,"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:test","name":"type:test","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-12T17:33:03Z","updated_at":"2016-11-12T17:36:32Z","closed_at":null,"body":"Extracted from #12936 and #12971.\r\n\r\nFor example see this [build job](https://travis-ci.org/yiisoft/yii2/builds/175302218).\r\n\r\n**PostgreSQL version:**:9.3.15\r\n**HHVM version:** 3.15.2\r\n\r\n```\r\nyii\\tests\\unit\\framework\\db\\pgsql\\CommandTest::testBindParamValue\r\n\r\nFailed asserting that false is true.\r\n\r\n/home/travis/build/yiisoft/yii2/tests/framework/db/CommandTest.php:199\r\n\r\n/home/travis/build/yiisoft/yii2/vendor/phpunit/phpunit/phpunit:47\r\n```\r\n\r\nRelated code:\r\n\r\n```php\r\n$command = $db->createCommand('SELECT [[int_col]], [[char_col]], [[float_col]], [[blob_col]], [[numeric_col]], [[bool_col]] FROM {{type}}');\r\n// $command->prepare();\r\n// $command->pdoStatement->bindColumn('blob_col', $bc, \\PDO::PARAM_LOB);\r\n$row = $command->queryOne();\r\n$this->assertEquals($intCol, $row['int_col']);\r\n$this->assertEquals($charCol, $row['char_col']);\r\n$this->assertEquals($floatCol, $row['float_col']);\r\nif ($this->driverName === 'mysql' || $this->driverName === 'sqlite' || $this->driverName === 'oci') {\r\n    $this->assertEquals($blobCol, $row['blob_col']);\r\n} else {\r\n    $this->assertTrue(is_resource($row['blob_col'])); // Test fails here\r\n    $this->assertEquals($blobCol, stream_get_contents($row['blob_col']));\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/260136248","html_url":"https://github.com/yiisoft/yii2/issues/12982#issuecomment-260136248","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12982","id":260136248,"user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T17:36:32Z","updated_at":"2016-11-12T17:36:32Z","body":"Thank you for the report. Do you have any suggestions?"}}
{"actor":{"display_login":"SilverFire"}}