22,13 → 22,13 |
// Parameters: $this is the OIDplusDatabaseConnection class |
// $version is the current version (this script MUST increase the number by 1 when it is done) |
|
if (!isset($version)) throw new OIDplusException("Argument 'version' is missing; was the file included in a wrong way?"); |
if (!isset($this)) throw new OIDplusException("Argument 'this' is missing; was the file included in a wrong way?"); |
if (!isset($version)) throw new OIDplusException(_L('Argument "%1" is missing; was the file included in a wrong way?','version')); |
if (!isset($this)) throw new OIDplusException(_L('Argument "%1" is missing; was the file included in a wrong way?','this')); |
|
if ($this->transaction_supported()) $this->transaction_begin(); |
|
if ($this->getSlang()::id() == 'mssql') { |
$sql = "CREATE FUNCTION [dbo].[getOidArc] (@strList varchar(512), @maxArcLen int, @occurence int) |
$this->query("CREATE FUNCTION [dbo].[getOidArc] (@strList varchar(512), @maxArcLen int, @occurence int) |
RETURNS varchar(512) AS |
BEGIN |
DECLARE @intPos int |
64,11 → 64,10 |
END |
|
RETURN REPLICATE('0', @maxArcLen) |
END"; |
$this->query($sql); |
END"); |
} |
|
$version = 203; |
$this->query("UPDATE ###config SET value = ? WHERE name = 'database_version'", array($version)); |
|
if ($this->transaction_supported()) $this->transaction_commit(); |
if ($this->transaction_supported()) $this->transaction_commit(); |