quelques ajouts / corrections
[mtweb] / mw / app / data / mw_sgbd.php
index db65b2e..8c30d95 100644 (file)
       );
     }
 
+    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"))) ?