Ticket #282: patch-282.diff

File patch-282.diff, 1.1 kB (added by bastnic, 1 year ago)

patch version 1

  • lib/jelix/dao/jDaoGenerator.class.php

    old new  
    447447            }else{ 
    448448               //in oracle we must escape name 
    449449               if ($this->_dbtype == 'oci8') { 
    450                   $field = sprintf ($prop->selectPattern, $table.$this->_encloseName($prop->fieldName)).' "'.$prop->name.'"'; 
    451                }else{ 
    452                   $field = sprintf ($prop->selectPattern, $table.$this->_encloseName($prop->fieldName)).' as '.$this->_encloseName($prop->name); 
    453               
     450                         $field = sprintf (str_replace("'","\\'",$prop->selectPattern), $table.$this->_encloseName($prop->fieldName)).' "'.$prop->name.'"'; 
     451                      }else{ 
     452                         $field = sprintf (str_replace("'","\\'",$prop->selectPattern), $table.$this->_encloseName($prop->fieldName)).' as '.$this->_encloseName($prop->name); 
     453                              
    454454            } 
    455455 
    456456            $result[]=$field; 
Download in other formats: Original Format