From 5d6c8e0f8d08d791585fcd48c5511442c220b891 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 7 Mar 2008 12:50:27 +0000 Subject: support not reading schema --- it_dbi.class | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'it_dbi.class') 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); -- cgit v1.2.3