Exemplo n.º 1
0
 /**
  * Filter the options used in SELECT statements
  *
  * @param $options array
  *
  * @return array
  */
 function makeSelectOptions($options)
 {
     foreach ($options as $k => $v) {
         if (is_numeric($k) && ($v == 'FOR UPDATE' || $v == 'LOCK IN SHARE MODE')) {
             $options[$k] = '';
         }
     }
     return parent::makeSelectOptions($options);
 }
Exemplo n.º 2
0
 /**
  * Filter the options used in SELECT statements
  *
  * @param $options array
  *
  * @return array
  */
 function makeSelectOptions($options)
 {
     foreach ($options as $k => $v) {
         if (is_numeric($k) && $v == 'FOR UPDATE') {
             $options[$k] = '';
         }
     }
     return parent::makeSelectOptions($options);
 }