diff options
-rw-r--r-- | it_dbi.class | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index 18b5052..746b898 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -35,6 +35,7 @@ class it_dbi #'keyfield' => 'ID', # Don't set to null here, filled later by _get_field_info() 'classprefix' => "", 'persistent' => false, + 'getfieldinfo' => true, # do not read schema. only select() allowed ); var $_key; # Key of currently loaded record or null (public readonly) @@ -74,7 +75,8 @@ function it_dbi($p = array(), $query = null) if (!isset($GLOBALS['it_dbi'])) new it_dbi; - $this->_p += $this->_get_field_info(); # Get $this->_fields and p[keyfield, autoincrement, randomid] + if ($p['getfieldinfo']) + $this->_p += $this->_get_field_info(); # Get $this->_fields and p[keyfield, autoincrement, randomid] if (is_array($query)) $this->select($query); |