We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d5eb5 commit cf44600Copy full SHA for cf44600
tests/Builder/SelectStatementTest.php
@@ -53,4 +53,27 @@ public function testBuilderAlias()
53
$stmt->build()
54
);
55
}
56
+
57
+ public function testBuilderEndOptions()
58
+ {
59
+ /* Assertion 1 */
60
+ $query = 'SELECT pid, name2 FROM tablename WHERE pid = 20 FOR UPDATE ';
61
+ $parser = new Parser($query);
62
+ $stmt = $parser->statements[0];
63
64
+ $this->assertEquals(
65
+ $query,
66
+ $stmt->build()
67
+ );
68
69
+ /* Assertion 2 */
70
+ $query = 'SELECT pid, name2 FROM tablename WHERE pid = 20 LOCK IN SHARE MODE ';
71
72
73
74
75
76
77
78
+ }
79
0 commit comments