* Fix bug#34346.

This commit is contained in:
朱金勇
2023-04-19 00:53:12 +00:00
parent dffb74c07d
commit 2ca80b1aa3
3 changed files with 12 additions and 6 deletions
+5
View File
@@ -744,6 +744,9 @@ CHANGE `team` `team` varchar(90) NOT NULL DEFAULT '',
CHANGE `whitelist` `whitelist` text NULL,
CHANGE `order` `order` mediumint unsigned NOT NULL DEFAULT '0';
ALTER TABLE `zt_projectstory`
CHANGE `branch` `branch` mediumint unsigned NOT NULL DEFAULT '0';
ALTER TABLE `zt_relation`
CHANGE `project` `project` mediumint NOT NULL DEFAULT '0',
CHANGE `product` `product` mediumint NOT NULL DEFAULT '0',
@@ -924,6 +927,8 @@ CHANGE `lastEditedBy` `lastEditedBy` char(30) NOT NULL DEFAULT '',
CHANGE `lastEditedDate` `lastEditedDate` datetime NULL;
ALTER TABLE `zt_testtask`
CHANGE `report` `report` text NULL,
CHANGE `testreport` `testreport` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `realFinishedDate` `realFinishedDate` datetime NULL;
ALTER TABLE `zt_ticket`
+3 -3
View File
@@ -1369,7 +1369,7 @@ CREATE UNIQUE INDEX `project` ON `zt_projectspec`(`project`,`version`);
CREATE TABLE IF NOT EXISTS `zt_projectstory` (
`project` mediumint(8) unsigned NOT NULL default '0',
`product` mediumint(8) unsigned NOT NULL,
`branch` mediumint(8) unsigned NOT NULL,
`branch` mediumint(8) unsigned NOT NULL DEFAULT '0',
`story` mediumint(8) unsigned NOT NULL default '0',
`version` smallint(6) NOT NULL default '1',
`order` smallint(6) unsigned NOT NULL,
@@ -1872,9 +1872,9 @@ CREATE TABLE IF NOT EXISTS `zt_testtask` (
`realFinishedDate` datetime NULL,
`mailto` text,
`desc` mediumtext NOT NULL,
`report` text NOT NULL,
`report` text NULL,
`status` enum('blocked','doing','wait','done') NOT NULL DEFAULT 'wait',
`testreport` mediumint(8) unsigned NOT NULL,
`testreport` mediumint(8) unsigned NOT NULL DEFAULT '0',
`auto` varchar(10) NOT NULL DEFAULT 'no',
`subStatus` varchar(30) NOT NULL default '',
`createdBy` varchar(30) NOT NULL,
+4 -3
View File
@@ -1601,6 +1601,7 @@ class baseSQL
{
global $dbh;
$this->dbh = $dbh;
$this->data = new stdclass();
$this->magicQuote = (version_compare(phpversion(), '5.4', '<') and function_exists('get_magic_quotes_gpc') and get_magic_quotes_gpc());
}
@@ -1790,8 +1791,8 @@ class baseSQL
if($this->method == 'insert')
{
$this->setField = $value;
$this->data->$value = '';
$this->setField = $set;
$this->data->$set = '';
}
else
{
@@ -2093,7 +2094,7 @@ class baseSQL
public function in($ids)
{
if($this->inCondition and !$this->conditionIsTrue) return $this;
$this->sql .= helper::dbIN($ids);
$this->sql .= $ids === NULL ? ' IS NULL' : helper::dbIN($ids);
return $this;
}