Source for file adodb-sybase_ase.inc.php
Documentation is available at adodb-sybase_ase.inc.php
V4.97 22 Jan 2008 (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Contributed by Interakt Online. Thx Cristian MARIN cristic#interaktonline.com
require_once ADODB_DIR. "/drivers/adodb-sybase.inc.php";
var $metaTablesSQL= "SELECT sysobjects.name FROM sysobjects, sysusers WHERE sysobjects.type='U' AND sysobjects.uid = sysusers.uid";
var $metaColumnsSQL = "SELECT syscolumns.name AS field_name, systypes.name AS type, systypes.length AS width FROM sysobjects, syscolumns, systypes WHERE sysobjects.name='%s' AND syscolumns.id = sysobjects.id AND systypes.type=syscolumns.type";
var $metaDatabasesSQL = "SELECT a.name FROM master.dbo.sysdatabases a, master.dbo.syslogins b WHERE a.suid = b.suid and a.name like '%' and a.name != 'tempdb' and a.status3 != 256 order by 1";
// split the Views, Tables and procedures.
function &MetaTables($ttype= false,$showSchema= false,$mask= false)
// complicated state saving by the need for backward compat
}elseif (false === $ttype){
}else{ // TABLES OR ANY OTHER
foreach($arr as $key=> $value){
$arr2[] = trim($value['name']);
$arr[] = $rs->Fields('name');
// fix a bug which prevent the metaColumns query to be executed for Sybase ASE
if ($rs === false) return $false;
$fld->name = $rs->Fields('field_name');
$fld->type = $rs->Fields('type');
$fld->max_length = $rs->Fields('width');
return 'Your PHP doesn\'t contain the Sybase connection module!';
$this->ADORecordSet_sybase($id,$mode);
|