using native adodb functions for quote and db_addslashes:

- qstr() save's one extra call compared to the PEAR function quote()
- dont need substr( ,1,-1) for db_addslashes
This commit is contained in:
Ralf Becker 2004-08-22 20:30:12 +00:00
parent 735f8e4036
commit 822506cec0

View File

@ -280,7 +280,7 @@
return False;
}
// the substring is needed as the string is already in quotes
return substr($this->Link_ID->quote($str),1,-1);
return $this->Link_ID->addq($str);
}
/**
@ -975,7 +975,7 @@
case 'timestamp':
return $this->Link_ID->DBTimeStamp($value);
}
return $this->Link_ID->quote($value);
return $this->Link_ID->qstr($value);
}
/**