Commit 94016b98 authored by Steve Müller's avatar Steve Müller

fix PHP 5.3 compatibility

parent 0d2f8187
...@@ -320,36 +320,36 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\""); ...@@ -320,36 +320,36 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
->method('executeUpdate') ->method('executeUpdate')
->with( ->with(
'UPDATE TestTable SET text = ?, is_edited = ? WHERE id = ? AND name = ?', 'UPDATE TestTable SET text = ?, is_edited = ? WHERE id = ? AND name = ?',
[ array(
'some text', 'some text',
true, true,
1, 1,
'foo', 'foo',
], ),
[ array(
'string', 'string',
'boolean', 'boolean',
'integer', 'integer',
'string', 'string',
] )
); );
$conn->update( $conn->update(
'TestTable', 'TestTable',
[ array(
'text' => 'some text', 'text' => 'some text',
'is_edited' => true, 'is_edited' => true,
], ),
[ array(
'id' => 1, 'id' => 1,
'name' => 'foo', 'name' => 'foo',
], ),
[ array(
'text' => 'string', 'text' => 'string',
'is_edited' => 'boolean', 'is_edited' => 'boolean',
'id' => 'integer', 'id' => 'integer',
'name' => 'string', 'name' => 'string',
] )
); );
} }
...@@ -373,35 +373,35 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\""); ...@@ -373,35 +373,35 @@ SQLSTATE[HY000]: General error: 1 near \"MUUHAAAAHAAAA\"");
->method('executeUpdate') ->method('executeUpdate')
->with( ->with(
'UPDATE TestTable SET text = ?, is_edited = ? WHERE id = ? AND is_edited = ?', 'UPDATE TestTable SET text = ?, is_edited = ? WHERE id = ? AND is_edited = ?',
[ array(
'some text', 'some text',
true, true,
1, 1,
false, false,
], ),
[ array(
'string', 'string',
'boolean', 'boolean',
'integer', 'integer',
'boolean', 'boolean',
] )
); );
$conn->update( $conn->update(
'TestTable', 'TestTable',
[ array(
'text' => 'some text', 'text' => 'some text',
'is_edited' => true, 'is_edited' => true,
], ),
[ array(
'id' => 1, 'id' => 1,
'is_edited' => false, 'is_edited' => false,
], ),
[ array(
'text' => 'string', 'text' => 'string',
'is_edited' => 'boolean', 'is_edited' => 'boolean',
'id' => 'integer', 'id' => 'integer',
] )
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment