- Timestamp:
- 09/26/13 15:41:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/drivers/adodb-sqlite.inc.php
r34 r8222 1 1 <?php 2 2 /* 3 V 4.94 23 Jan 2007 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved.3 V5.18 3 Sep 2012 (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. 4 4 Released under both BSD license and Lesser GPL library license. 5 5 Whenever there is any discrepancy between the two licenses, … … 79 79 80 80 // mark newnham 81 function &MetaColumns($tab)81 function MetaColumns($table, $normalize=true) 82 82 { 83 83 global $ADODB_FETCH_MODE; … … 86 86 $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; 87 87 if ($this->fetchMode !== false) $savem = $this->SetFetchMode(false); 88 $rs = $this->Execute("PRAGMA table_info('$tab ')");88 $rs = $this->Execute("PRAGMA table_info('$table')"); 89 89 if (isset($savem)) $this->SetFetchMode($savem); 90 90 if (!$rs) { … … 105 105 $fld->not_null = $r['notnull']; 106 106 $fld->default_value = $r['dflt_value']; 107 $fld->scale = 0; 107 $fld->scale = 0; 108 if (isset($r['pk']) && $r['pk']) $fld->primary_key=1; 108 109 if ($save == ADODB_FETCH_NUM) $arr[] = $fld; 109 110 else $arr[strtoupper($fld->name)] = $fld; … … 191 192 } 192 193 193 function &SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)194 function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0) 194 195 { 195 196 $offsetStr = ($offset >= 0) ? " OFFSET $offset" : ''; 196 197 $limitStr = ($nrows >= 0) ? " LIMIT $nrows" : ($offset >= 0 ? ' LIMIT 999999999' : ''); 197 198 if ($secs2cache) 198 $rs = &$this->CacheExecute($secs2cache,$sql."$limitStr$offsetStr",$inputarr);199 $rs = $this->CacheExecute($secs2cache,$sql."$limitStr$offsetStr",$inputarr); 199 200 else 200 $rs = &$this->Execute($sql."$limitStr$offsetStr",$inputarr);201 $rs = $this->Execute($sql."$limitStr$offsetStr",$inputarr); 201 202 202 203 return $rs; … … 262 263 } 263 264 264 function &MetaIndexes($table, $primary = FALSE, $owner=false)265 function MetaIndexes($table, $primary = FALSE, $owner=false, $owner = false) 265 266 { 266 267 $false = false; … … 351 352 352 353 353 function &FetchField($fieldOffset = -1)354 function FetchField($fieldOffset = -1) 354 355 { 355 356 $fld = new ADOFieldObject;
Note: See TracChangeset
for help on using the changeset viewer.