Skip to content

Commit feae810

Browse files
authored
Db Pgsql getRawSql params replace fix (#221)
yiisoft/yii2#18592
1 parent f684cb0 commit feae810

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Provider/CommandProvider.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,15 @@ public function batchInsert(): array
7676

7777
return $batchInsert;
7878
}
79+
80+
public function rawSql(): array
81+
{
82+
return array_merge(parent::rawSql(), [
83+
[
84+
'SELECT * FROM customer WHERE id::integer IN (:in, :out)',
85+
[':in' => 1, ':out' => 2],
86+
'SELECT * FROM customer WHERE id::integer IN (1, 2)',
87+
],
88+
]);
89+
}
7990
}

0 commit comments

Comments
 (0)