1
0
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:
David Grudl
2006-08-25 15:17:40 +00:00
parent 82e82e8872
commit 2cc9fa22fb
13 changed files with 450 additions and 319 deletions

View File

@@ -165,7 +165,7 @@ class DibiMySqlDriver extends DibiDriver {
public function quoteName($value)
{
return '`' . strtr($value, array('.' => '`.`')) . '`';
return '`' . strtr( $this->applySubsts($value), array('.' => '`.`')) . '`';
}

View File

@@ -143,7 +143,7 @@ class DibiMySqliDriver extends DibiDriver {
public function quoteName($value)
{
return '`' . strtr($value, array('.' => '`.`')) . '`';
return '`' . strtr( $this->applySubsts($value), array('.' => '`.`')) . '`';
}

View File

@@ -138,7 +138,7 @@ class DibiOdbcDriver extends DibiDriver {
public function quoteName($value)
{
return '[' . strtr($value, array('.' => '].[')) . ']';
return '[' . strtr( $this->applySubsts($value), array('.' => '].[')) . ']';
}

View File

@@ -133,7 +133,7 @@ class DibiSqliteDriver extends DibiDriver {
public function quoteName($value)
{
return $value;
return $this->applySubsts($value);
}