File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,17 @@ jobs:
231
231
matrix :
232
232
php-version :
233
233
- " 8.2"
234
+ emulate-prepares :
235
+ - " ON"
236
+ - " OFF"
234
237
235
238
services :
236
239
postgis :
237
240
image : " postgis/postgis:17-3.5-alpine"
238
241
env :
239
242
POSTGRES_USER : postgres
240
243
POSTGRES_PASSWORD : postgres
244
+ EMULATE_PREPARES : ${{ matrix.emulate-prepares }}
241
245
ports :
242
246
- " 5432:5432"
243
247
Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ function getRequiredEnv(string $name): string
118
118
break ;
119
119
120
120
case 'postgis_pdo ' :
121
+ $ emulatePrepares = getOptionalEnv ('EMULATE_PREPARES ' ) === 'ON ' ;
122
+
121
123
echo 'Using PostgisEngine with PdoPgsqlDriver ' , PHP_EOL ;
122
124
123
125
$ host = getRequiredEnv ('POSTGRES_HOST ' );
@@ -131,6 +133,7 @@ function getRequiredEnv(string $name): string
131
133
$ password ,
132
134
[
133
135
PDO ::ATTR_ERRMODE => PDO ::ERRMODE_EXCEPTION ,
136
+ PDO ::ATTR_EMULATE_PREPARES => $ emulatePrepares ,
134
137
],
135
138
);
136
139
You can’t perform that action at this time.
0 commit comments