DROP: Setting Drop Types
/**
* Sets the named property according to which DBMS is in use
*
* @return boolean true if successful. Does die() if the DBMS is unkown.
*/
function setDropCascade() {
switch ($this->phptype . ':' . $this->dbsyntax) {
case 'fbsql:fbsql':
$this->DropCascade = ' CASCADE ';
break;
case 'ibase:firebird':
case 'mssql:mssql':
case 'mysql:mysql':
case 'mysqli:mysqli':
case 'oci8:oci8':
case 'odbc:access':
case 'odbc:db2':
case 'pgsql:pgsql':
case 'sqlite:sqlite':
case 'sybase:sybase':
$this->DropCascade = ' ';
break;
default:
$this->DropCascade = false;
die('unknown phptype/dbsyntax in setDropCascade()');
}
return true;
}
/**
* Sets the named property according to which DBMS is in use
*
* @return boolean true if successful. Does die() if the DBMS is unkown.
*/
function setDropRestrict() {
switch ($this->phptype . ':' . $this->dbsyntax) {
case 'fbsql:fbsql':
$this->DropRestrict = ' RESTRICT ';
break;
case 'ibase:firebird':
case 'mssql:mssql':
case 'mysql:mysql':
case 'mysqli:mysqli':
case 'oci8:oci8':
case 'odbc:access':
case 'odbc:db2':
case 'pgsql:pgsql':
case 'sqlite:sqlite':
case 'sybase:sybase':
$this->DropRestrict = ' ';
break;
default:
$this->DropRestrict = false;
die('unknown phptype/dbsyntax in setDropRestrict()');
}
return true;
}