Skip to content

Commit d86671e

Browse files
committed
Initial import
1 parent 0e46b42 commit d86671e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/Kir/MySQL/Builder/SelectTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ public function testWhere() {
5555
->where('a+1<2')
5656
->asString();
5757
$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+
$str = TestSelect::create()
67+
->field('a')
68+
->from('t', 'test')
69+
->where('a < :0', 1000)
70+
->asString();
71+
$this->assertEquals('SELECT a FROM test t WHERE a < 1000 ;', $str);
5872
}
5973

6074
public function testHaving() {

0 commit comments

Comments
 (0)