We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 66858ac + f928ed0 commit 475998cCopy full SHA for 475998c
CHANGELOG.md
@@ -4,7 +4,13 @@ All changes to this project are documented in this file.
4
5
This project adheres to Semantic Versioning.
6
7
-[vx.x.x] - 2022-09-19
+[v1.0.1] - 2022-09-19
8
+
9
+## Changed
10
11
+- Fixed misinterpretation of empty strings as NULL
12
13
+[v1.0.0] - 2022-09-19
14
15
## Changed
16
src/Builder/Syntax/PlaceholderWriter.php
@@ -80,11 +80,7 @@ protected function setValidSqlValue($value)
80
*/
81
protected function writeNullSqlString($value)
82
{
83
- if (\is_null($value) || (\is_string($value) && empty($value))) {
84
- $value = $this->writeNull();
85
- }
86
-
87
- return $value;
+ return null === $value ? null : $value;
88
}
89
90
/**
0 commit comments