forked from extern/egroupware
Added some missing functionality.
This commit is contained in:
parent
2fe4597371
commit
40ec10583d
@ -85,6 +85,24 @@ class db {
|
||||
return $stat;
|
||||
}
|
||||
|
||||
function transaction_begin()
|
||||
{
|
||||
return $this->query('BEGIN TRAN');
|
||||
}
|
||||
|
||||
function transaction_commit()
|
||||
{
|
||||
if (!$this->Errno)
|
||||
return $this->query('COMMIT TRAN');
|
||||
|
||||
return False;
|
||||
}
|
||||
|
||||
function transaction_abort()
|
||||
{
|
||||
return $this->query('ROLLBACK TRAN');
|
||||
}
|
||||
|
||||
function seek($pos) {
|
||||
mssql_data_seek($this->Query_ID,$pos);
|
||||
$this->Row = $pos;
|
||||
@ -150,5 +168,19 @@ class db {
|
||||
$this->Error);
|
||||
die("Session halted.");
|
||||
}
|
||||
|
||||
function table_names()
|
||||
{
|
||||
$this->query("select name from sysobjects where type='u' and name != 'dtproperties'");
|
||||
$i = 0;
|
||||
while ($info = @mssql_fetch_row($this->Query_ID))
|
||||
{
|
||||
$return[$i]['table_name'] = $info[0];
|
||||
$return[$i]['tablespace_name'] = $this->Database;
|
||||
$return[$i]['database'] = $this->Database;
|
||||
$i++;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user