mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 01:24:06 +02:00
prefix & substitution support (0.6c)
This commit is contained in:
@@ -165,7 +165,7 @@ class DibiMySqlDriver extends DibiDriver {
|
||||
|
||||
public function quoteName($value)
|
||||
{
|
||||
return '`' . strtr($value, array('.' => '`.`')) . '`';
|
||||
return '`' . strtr( $this->applySubsts($value), array('.' => '`.`')) . '`';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -143,7 +143,7 @@ class DibiMySqliDriver extends DibiDriver {
|
||||
|
||||
public function quoteName($value)
|
||||
{
|
||||
return '`' . strtr($value, array('.' => '`.`')) . '`';
|
||||
return '`' . strtr( $this->applySubsts($value), array('.' => '`.`')) . '`';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -138,7 +138,7 @@ class DibiOdbcDriver extends DibiDriver {
|
||||
|
||||
public function quoteName($value)
|
||||
{
|
||||
return '[' . strtr($value, array('.' => '].[')) . ']';
|
||||
return '[' . strtr( $this->applySubsts($value), array('.' => '].[')) . ']';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -133,7 +133,7 @@ class DibiSqliteDriver extends DibiDriver {
|
||||
|
||||
public function quoteName($value)
|
||||
{
|
||||
return $value;
|
||||
return $this->applySubsts($value);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user