X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fdata%2Fmw_sgbd.php;h=8c30d951ba22cd764e5ec86b2bdb939ccad9f016;hb=4bc0f6efc262d712b5c6f09375548bf17cd1576d;hp=db65b2e092db46962b267c984b699621f4669003;hpb=dd547a56fc147a8a8b482c51a4f241d1ccbb62cb;p=mtweb diff --git a/mw/app/data/mw_sgbd.php b/mw/app/data/mw_sgbd.php index db65b2e..8c30d95 100644 --- a/mw/app/data/mw_sgbd.php +++ b/mw/app/data/mw_sgbd.php @@ -34,6 +34,17 @@ ); } + function field_exists($table_name, $field_name){ + return $this->sgbd_impl->field_exists( + ( + $prefix_codes = array_keys($this->env->bdd("table_prefix"))) ? + str_replace($prefix_codes, array_values($this->env->bdd("table_prefix")), $table_name) + : $table_name, + $field_name + ); + + } + function query($sql){ return $this->sgbd_impl->query( ($prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?