Added some missing functionality.

This commit is contained in:
mdean 2001-06-26 01:47:36 +00:00
parent 2fe4597371
commit 40ec10583d

View File

@ -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;
}
}
?>