芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/lib/adodb/drivers/adodb-vfp.inc.php
replaceQuote,$s))."'"; return "'".$s."'"; } // TOP requires ORDER BY for VFP function SelectLimit($sql,$nrows=-1,$offset=-1, $inputarr=false,$secs2cache=0) { $this->hasTop = preg_match('/ORDER[ \t\r\n]+BY/is',$sql) ? 'top' : false; $ret = ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache); return $ret; } }; class ADORecordSet_vfp extends ADORecordSet_odbc { var $databaseType = "vfp"; function __construct($id,$mode=false) { return parent::__construct($id,$mode); } function MetaType($t, $len = -1, $fieldobj = false) { if (is_object($t)) { $fieldobj = $t; $t = $fieldobj->type; $len = $fieldobj->max_length; } switch (strtoupper($t)) { case 'C': if ($len <= $this->blobSize) return 'C'; case 'M': return 'X'; case 'D': return 'D'; case 'T': return 'T'; case 'L': return 'L'; case 'I': return 'I'; default: return 'N'; } } } } //define