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
@@ -3169,12 +3173,12 @@ public static function provideCases(): iterable
3169
3173
'data' => self::dataSqrt(),
3170
3174
'select' => 'SELECT SQRT(t.col_int_nullable) FROM %s t',
3171
3175
'mysql' => self::floatOrNull(),
3172
-
'sqlite' => PHP_VERSION_ID >= 80100 ? null : self::floatOrNull(), // fails in UDF since PHP 8.1: sqrt(): Passing null to parameter #1 ($num) of type float is deprecated
3176
+
'sqlite' => PHP_VERSION_ID >= 80100&& !self::hasDbal4() ? null : self::floatOrNull(), // fails in UDF since PHP 8.1: sqrt(): Passing null to parameter #1 ($num) of type float is deprecated
3173
3177
'pdo_pgsql' => self::numericStringOrNull(),
3174
3178
'pgsql' => self::floatOrNull(),
3175
3179
'mssql' => newMixedType(),
3176
3180
'mysqlResult' => null,
3177
-
'sqliteResult' => 0.0, // caused by UDF wired through PHP's sqrt() which returns 0.0 for null
3181
+
'sqliteResult' => self::hasDbal4() ? null : 0.0, // 0.0 caused by UDF wired through PHP's sqrt() which returns 0.0 for null
3178
3182
'pdoPgsqlResult' => null,
3179
3183
'pgsqlResult' => null,
3180
3184
'mssqlResult' => null,
@@ -3276,8 +3280,8 @@ public static function provideCases(): iterable
3276
3280
yield"SQRT('foo')" => [
3277
3281
'data' => self::dataSqrt(),
3278
3282
'select' => "SELECT SQRT('foo') FROM %s t",
3279
-
'mysql' => self::float(),
3280
-
'sqlite' => null, // fails in UDF: sqrt(): Argument #1 ($num) must be of type float, string given
3283
+
'mysql' => self::mixed(),
3284
+
'sqlite' => self::hasDbal4() ? self::mixed() : null, // fails in UDF: sqrt(): Argument #1 ($num) must be of type float, string given
3281
3285
'pdo_pgsql' => null, // Invalid text representation
3282
3286
'pgsql' => null, // Invalid text representation
3283
3287
'mssql' => null, // Error converting data type
@@ -3294,8 +3298,8 @@ public static function provideCases(): iterable
3294
3298
yield'SQRT(t.col_string)' => [
3295
3299
'data' => self::dataSqrt(),
3296
3300
'select' => 'SELECT SQRT(t.col_string) FROM %s t',
3297
-
'mysql' => self::floatOrNull(),
3298
-
'sqlite' => null, // fails in UDF: sqrt(): Argument #1 ($num) must be of type float, string given
3301
+
'mysql' => self::mixed(),
3302
+
'sqlite' => self::hasDbal4() ? self::mixed() : null, // fails in UDF: sqrt(): Argument #1 ($num) must be of type float, string given
0 commit comments