@@ -147,7 +147,7 @@ public function orderBy($expression, $direction = 'asc') {
147147 $ expression [0 ],
148148 array_slice ($ expression , 1 )
149149 );
150- $ expression = call_user_func_array (array ($ this ->mysql (), 'quoteExpression ' ), $ arguments );
150+ $ expression = call_user_func_array (array ($ this ->db (), 'quoteExpression ' ), $ arguments );
151151 }
152152 $ this ->orderBy [] = array ($ expression , $ direction );
153153 return $ this ;
@@ -167,7 +167,7 @@ public function groupBy($expression) {
167167 $ expression [0 ],
168168 array_slice ($ expression , 1 )
169169 );
170- $ expression = call_user_func_array (array ($ this ->mysql (), 'quoteExpression ' ), $ arguments );
170+ $ expression = call_user_func_array (array ($ this ->db (), 'quoteExpression ' ), $ arguments );
171171 }
172172 $ this ->groupBy [] = $ expression ;
173173 }
@@ -298,7 +298,7 @@ private function buildConditions($type, array $conditions, $query) {
298298 $ arr = array ();
299299 foreach ($ conditions as $ condition ) {
300300 list ($ expression , $ arguments ) = $ condition ;
301- $ expr = $ this ->mysql ()->quoteExpression ($ expression , $ arguments );
301+ $ expr = $ this ->db ()->quoteExpression ($ expression , $ arguments );
302302 $ arr [] = "\t{$ expr }" ;
303303 }
304304 $ query .= join ("\n\tAND \n" , $ arr );
@@ -368,6 +368,6 @@ private function buildTableName($alias, $name) {
368368 * @return string
369369 */
370370 private function buildExpression ($ expression , array $ arguments ) {
371- return $ this ->mysql ()->quoteExpression ($ expression , $ arguments );
371+ return $ this ->db ()->quoteExpression ($ expression , $ arguments );
372372 }
373373}
0 commit comments