mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
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:
parent
6f17aa5759
commit
ed3fd79304
1 changed files with 7 additions and 1 deletions
|
|
@ -21,7 +21,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapeString($name){
|
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){
|
function parseTableName($name){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue