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 0e46b42 commit d86671eCopy full SHA for d86671e
tests/Kir/MySQL/Builder/SelectTest.php
@@ -55,6 +55,20 @@ public function testWhere() {
55
->where('a+1<2')
56
->asString();
57
$this->assertEquals('SELECT a FROM test t WHERE a+1<2 ;', $str);
58
+
59
+ $str = TestSelect::create()
60
+ ->field('a')
61
+ ->from('t', 'test')
62
+ ->where('a < ?', 1000)
63
+ ->asString();
64
+ $this->assertEquals('SELECT a FROM test t WHERE a < 1000 ;', $str);
65
66
67
68
69
+ ->where('a < :0', 1000)
70
71
72
}
73
74
public function testHaving() {
0 commit comments