Skip to content

Commit e40c7f1

Browse files
staabmclxmstaab
andauthored
Use fixed date in QuerySimulation (#249)
Co-authored-by: Markus Staab <[email protected]>
1 parent c4e6265 commit e40c7f1

File tree

4 files changed

+950
-147
lines changed

4 files changed

+950
-147
lines changed

src/QueryReflection/QuerySimulation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function simulateParamValueType(Type $paramType, bool $preparedPar
7878
// returns a string in date-format, so in case the simulated value is used against a date/datetime column
7979
// we won't run into a sql error.
8080
// XX in case we would have a proper sql parser, we could feed schema-type-dependent default values in case of strings.
81-
return date(MysqliQueryReflector::DATE_FORMAT);
81+
return date(MysqliQueryReflector::DATE_FORMAT, 0);
8282
}
8383

8484
// plain string types can contain anything.. we cannot reason about it

0 commit comments

Comments
 (0)