X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdb%2FDatabaseOracle.php;h=561dadb72f39fc3e9af0ff8827e4b3c639d2d331;hp=5d0ff447bae06a2dcb0e84cb08b1f7aeee0cb4be;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=272f45a8a0a682d903bc521c04cbf0f4bc1e099e diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index 5d0ff447ba..561dadb72f 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -129,63 +129,9 @@ class ORAResult { } /** - * Utility class. * @ingroup Database */ -class ORAField implements Field { - private $name, $tablename, $default, $max_length, $nullable, - $is_pk, $is_unique, $is_multiple, $is_key, $type; - - function __construct( $info ) { - $this->name = $info['column_name']; - $this->tablename = $info['table_name']; - $this->default = $info['data_default']; - $this->max_length = $info['data_length']; - $this->nullable = $info['not_null']; - $this->is_pk = isset( $info['prim'] ) && $info['prim'] == 1 ? 1 : 0; - $this->is_unique = isset( $info['uniq'] ) && $info['uniq'] == 1 ? 1 : 0; - $this->is_multiple = isset( $info['nonuniq'] ) && $info['nonuniq'] == 1 ? 1 : 0; - $this->is_key = ( $this->is_pk || $this->is_unique || $this->is_multiple ); - $this->type = $info['data_type']; - } - - function name() { - return $this->name; - } - - function tableName() { - return $this->tablename; - } - - function defaultValue() { - return $this->default; - } - - function maxLength() { - return $this->max_length; - } - - function isNullable() { - return $this->nullable; - } - - function isKey() { - return $this->is_key; - } - - function isMultipleKey() { - return $this->is_multiple; - } - - function type() { - return $this->type; - } -} - -/** - * @ingroup Database - */ -class DatabaseOracle extends Database { +class DatabaseOracle extends DatabaseBase { /** @var resource */ protected $mLastResult = null; @@ -230,22 +176,6 @@ class DatabaseOracle extends Database { return 'oracle'; } - function cascadingDeletes() { - return true; - } - - function cleanupTriggers() { - return true; - } - - function strictIPs() { - return true; - } - - function realTimestamps() { - return true; - } - function implicitGroupby() { return false; } @@ -254,10 +184,6 @@ class DatabaseOracle extends Database { return false; } - function searchableIPs() { - return true; - } - /** * Usually aborts on failure * @param string $server @@ -1571,10 +1497,6 @@ class DatabaseOracle extends Database { return 'CAST ( ' . $field . ' AS VARCHAR2 )'; } - public function getSearchEngine() { - return 'SearchOracle'; - } - public function getInfinity() { return '31-12-2030 12:00:00.000000'; }