@@ -502,7 +502,7 @@ public function compileFilterCondition($filter)
502502
503503 if (!empty ($ filter )) {
504504 if (strtoupper ($ filter ['operator ' ]) === 'BETWEEN ' ) {
505- $ query .= $ this -> getConnection ()-> quoteIdentifier ( $ filter ['column ' ]) ;
505+ $ query .= $ filter ['column ' ];
506506 $ query .= ' BETWEEN ' ;
507507 $ query .= $ this ->getConnection ()->quote ($ filter ['value ' ][0 ]).' AND '
508508 .$ this ->getConnection ()->quote ($ filter ['value ' ][1 ]).' ' ;
@@ -511,7 +511,7 @@ public function compileFilterCondition($filter)
511511 if ($ filter ['column ' ] === 'id ' ) {
512512 $ query .= 'id ' ;
513513 } else {
514- $ query .= $ this -> getConnection ()-> quoteIdentifier ( $ filter ['column ' ]) .' ' ;
514+ $ query .= $ filter ['column ' ].' ' ;
515515 }
516516
517517 if (in_array (strtoupper ($ filter ['operator ' ]), array ('IN ' , 'NOT IN ' ), true )) {
@@ -538,7 +538,7 @@ public function compileSelect()
538538 $ query .= 'SELECT ' ;
539539
540540 if (!empty ($ this ->select )) {
541- $ query .= implode (', ' , $ this ->getConnection ()-> quoteIdentifierArr ( $ this -> select ) ).' ' ;
541+ $ query .= implode (', ' , $ this ->select ).' ' ;
542542 } else {
543543 $ query .= '* ' ;
544544 }
@@ -552,14 +552,14 @@ public function compileSelect()
552552 } elseif ($ this ->from instanceof SphinxQL) {
553553 $ query .= 'FROM ( ' .$ this ->from ->compile ()->getCompiled ().') ' ;
554554 } else {
555- $ query .= 'FROM ' .implode (', ' , $ this ->getConnection ()-> quoteIdentifierArr ( $ this -> from ) ).' ' ;
555+ $ query .= 'FROM ' .implode (', ' , $ this ->from ).' ' ;
556556 }
557557 }
558558
559559 $ query .= $ this ->compileMatch ().$ this ->compileWhere ();
560560
561561 if (!empty ($ this ->group_by )) {
562- $ query .= 'GROUP BY ' .implode (', ' , $ this ->getConnection ()-> quoteIdentifierArr ( $ this -> group_by ) ).' ' ;
562+ $ query .= 'GROUP BY ' .implode (', ' , $ this ->group_by ).' ' ;
563563 }
564564
565565 if (!empty ($ this ->within_group_order_by )) {
@@ -568,7 +568,7 @@ public function compileSelect()
568568 $ order_arr = array ();
569569
570570 foreach ($ this ->within_group_order_by as $ order ) {
571- $ order_sub = $ this -> getConnection ()-> quoteIdentifier ( $ order ['column ' ]) .' ' ;
571+ $ order_sub = $ order ['column ' ].' ' ;
572572
573573 if ($ order ['direction ' ] !== null ) {
574574 $ order_sub .= ((strtolower ($ order ['direction ' ]) === 'desc ' ) ? 'DESC ' : 'ASC ' );
@@ -590,7 +590,7 @@ public function compileSelect()
590590 $ order_arr = array ();
591591
592592 foreach ($ this ->order_by as $ order ) {
593- $ order_sub = $ this -> getConnection ()-> quoteIdentifier ( $ order ['column ' ]) .' ' ;
593+ $ order_sub = $ order ['column ' ].' ' ;
594594
595595 if ($ order ['direction ' ] !== null ) {
596596 $ order_sub .= ((strtolower ($ order ['direction ' ]) === 'desc ' ) ? 'DESC ' : 'ASC ' );
@@ -632,8 +632,7 @@ function (&$val, $key) {
632632 $ option ['value ' ] = $ this ->getConnection ()->quote ($ option ['value ' ]);
633633 }
634634
635- $ options [] = $ this ->getConnection ()->quoteIdentifier ($ option ['name ' ])
636- .' = ' .$ option ['value ' ];
635+ $ options [] = $ option ['name ' ].' = ' .$ option ['value ' ];
637636 }
638637
639638 $ query .= 'OPTION ' .implode (', ' , $ options ).' ' ;
@@ -681,7 +680,7 @@ public function compileInsert()
681680 }
682681
683682 if (!empty ($ this ->columns )) {
684- $ query .= '( ' .implode (', ' , $ this ->getConnection ()-> quoteIdentifierArr ( $ this -> columns ) ).') ' ;
683+ $ query .= '( ' .implode (', ' , $ this ->columns ).') ' ;
685684 }
686685
687686 if (!empty ($ this ->values )) {
@@ -722,10 +721,10 @@ public function compileUpdate()
722721 foreach ($ this ->set as $ column => $ value ) {
723722 // MVA support
724723 if (is_array ($ value )) {
725- $ query_sub [] = $ this -> getConnection ()-> quoteIdentifier ( $ column)
724+ $ query_sub [] = $ column
726725 .' = ( ' .implode (', ' , $ this ->getConnection ()->quoteArr ($ value )).') ' ;
727726 } else {
728- $ query_sub [] = $ this -> getConnection ()-> quoteIdentifier ( $ column)
727+ $ query_sub [] = $ column
729728 .' = ' .$ this ->getConnection ()->quote ($ value );
730729 }
731730 }
0 commit comments