FriendsOfDoctrine / dbal-clickhouse

Doctrine DBAL driver for ClickHouse database
GNU General Public License v3.0
98 stars 80 forks source link

fix a problem with preg_replace parameters in the query #23

Open bookin opened 5 years ago

bookin commented 5 years ago

If one of parameters have a ? symbol in the text, preg_replace can work incorrectly, because just looking for any ? symbol

bookin commented 5 years ago

Seems you have a solution in the $hasZeroIndex part, sorry, I use an older version and can not test code to change all to use one method to both ways.