summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Newnham <mark@newnhams.com>2021-03-26 20:51:34 -0600
committerDamien Regad <dregad@mantisbt.org>2021-08-22 11:16:01 +0200
commit1aa567ad18d5ed0c39335179c9278ae7a90c42fe (patch)
treeb947f983c4349420a076f863d8518211f1cdacc3
parent382b4d477e42c430d99daaf3427a74854a971494 (diff)
downloadadodb-1aa567ad18d5ed0c39335179c9278ae7a90c42fe.tar.gz
adodb-1aa567ad18d5ed0c39335179c9278ae7a90c42fe.tar.bz2
adodb-1aa567ad18d5ed0c39335179c9278ae7a90c42fe.zip
removed metgod dropSequence()
Firebird recommends SEQUENCE instead of GENERATOR, so use core methods
-rw-r--r--drivers/adodb-firebird.inc.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/adodb-firebird.inc.php b/drivers/adodb-firebird.inc.php
index bb98ebdf..a6db6c38 100644
--- a/drivers/adodb-firebird.inc.php
+++ b/drivers/adodb-firebird.inc.php
@@ -44,6 +44,8 @@ class ADODB_firebird extends ADOConnection {
public $genSeqSQL = "CREATE SEQUENCE %s START WITH %s";
+ public $_dropSeqSQL = "DROP SEQUENCE %s";
+
var $hasGenID = true;
var $_bindInputArray = true;
var $sysDate = "cast('TODAY' as timestamp)";
@@ -401,13 +403,7 @@ class ADODB_firebird extends ADOConnection {
if (!$ok)
return false;
}
-
- function DropSequence($seqname = 'adodbseq')
- {
- $seqname = strtoupper($seqname);
- return $this->Execute("DROP GENERATOR $seqname");
- }
-
+
function GenID($seqname='adodbseq',$startID=1)
{
$getnext = ("SELECT Gen_ID($seqname,1) FROM RDB\$DATABASE");