escape string value

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8518 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
lickawtl 2011-06-21 10:01:43 +00:00
parent 6f17aa5759
commit ed3fd79304

View file

@ -21,7 +21,13 @@
}
function escapeString($name){
return "'".$name."'";
return "'".$this->escapeStringValue($name)."'";
}
function escapeStringValue($value){
if($value == "*") return $value;
if (!is_numeric($value)) return $value = str_replace("'","\'",$string);
return $value;
}
function parseTableName($name){