File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,21 +54,21 @@ public function testWhere() {
54
54
->from ('t ' , 'test ' )
55
55
->where ('a+1<2 ' )
56
56
->asString ();
57
- $ this ->assertEquals ('SELECT a FROM test t WHERE a+1<2 ; ' , $ str );
57
+ $ this ->assertEquals ('SELECT a FROM test t WHERE ( a+1<2) ; ' , $ str );
58
58
59
59
$ str = TestSelect::create ()
60
60
->field ('a ' )
61
61
->from ('t ' , 'test ' )
62
62
->where ('a < ? ' , 1000 )
63
63
->asString ();
64
- $ this ->assertEquals ("SELECT a FROM test t WHERE a < '1000' ; " , $ str );
64
+ $ this ->assertEquals ("SELECT a FROM test t WHERE ( a < '1000') ; " , $ str );
65
65
66
66
$ str = TestSelect::create ()
67
67
->field ('a ' )
68
68
->from ('t ' , 'test ' )
69
69
->where ('a < :0 ' , 1000 )
70
70
->asString ();
71
- $ this ->assertEquals ("SELECT a FROM test t WHERE a < '1000' ; " , $ str );
71
+ $ this ->assertEquals ("SELECT a FROM test t WHERE ( a < '1000') ; " , $ str );
72
72
}
73
73
74
74
public function testHaving () {
@@ -77,7 +77,7 @@ public function testHaving() {
77
77
->from ('t ' , 'test ' )
78
78
->having ('a+1<2 ' )
79
79
->asString ();
80
- $ this ->assertEquals ('SELECT a FROM test t HAVING a+1<2 ; ' , $ str );
80
+ $ this ->assertEquals ('SELECT a FROM test t HAVING ( a+1<2) ; ' , $ str );
81
81
}
82
82
83
83
public function testOrder () {
@@ -142,6 +142,6 @@ public function testInnerSelect() {
142
142
->from ('t ' , $ select )
143
143
->asString ();
144
144
145
- $ this ->assertEquals ('SELECT * FROM (SELECT * FROM table a WHERE a.id=1) t ; ' , $ str );
145
+ $ this ->assertEquals ('SELECT * FROM (SELECT * FROM table a WHERE ( a.id=1) ) t ; ' , $ str );
146
146
}
147
147
}
You can’t perform that action at this time.
0 commit comments