return 'CONCAT(' . implode( ',', $stringList ) . ')';
}
+ /**
+ * Acquire a lock, no-op to be overridden
+ * by subclasses as needed.
+ */
+ public function lock( $lockName, $method ) {
+ return true;
+ }
+ /**
+ * Release a lock, no-op to be overridden
+ * by subclasses as needed.
+ */
+ public function unlock( $lockName, $method ) {
+ return true;
+ }
+}
+
+/**
+ * Database abstraction object for mySQL
+ * Inherit all methods and properties of Database::Database(),
+ * except for locking.
+ *
+ * @ingroup Database
+ * @see Database
+ */
+class DatabaseMysql extends Database {
+
/**
* Acquire a lock
*
return false;
}
}
+
/**
* Release a lock.
*
}
}
-/**
- * Database abstraction object for mySQL
- * Inherit all methods and properties of Database::Database()
- *
- * @ingroup Database
- * @see Database
- */
-class DatabaseMysql extends Database {
- # Inherit all
-}
-
/******************************************************************************
* Utility classes
*****************************************************************************/
$this->query("$sql $matches[1],$matches[2])");
}
}
-
- /**
- * No-op lock functions
- */
- public function lock( $lockName, $method ) {
- return true;
- }
- public function unlock( $lockName, $method ) {
- return true;
- }
}
function getServer() {
return $this->mServer;
}
-
- /**
- * No-op lock functions
- */
- public function lock( $lockName, $method ) {
- return true;
- }
- public function unlock( $lockName, $method ) {
- return true;
- }
} // end DatabaseOracle class
return implode( ' || ', $stringList );
}
- /* These are not used yet, but we know we don't want the default version */
-
- public function lock( $lockName, $method ) {
- return true;
- }
- public function unlock( $lockName, $method ) {
- return true;
- }
-
} // end DatabasePostgres class
$this->query("$sql $matches[1],$matches[2])");
}
}
-
- /**
- * No-op lock functions
- */
- public function lock( $lockName, $method ) {
- return true;
- }
- public function unlock( $lockName, $method ) {
- return true;
- }
}