svn HEADでのエラーを回避するメモ。
タスクの状態を変更するとき、エラーになってしまう。
ログを見ると、そもそもDEADEND_DATEがまずいらしい。
[Debug 2007/02/19 13:58:21]:[Q:\DEV\Project\rhaco\database\DbUtilPostgreSQL.php:46] [Resource id #314] select count(STATUS.STATUS_ID) as COUNT from WORKSTYLE_STATUS STATUS where STATUS.STATUS_ID = 7 [Debug 2007/02/19 13:58:21]:[Q:\DEV\Project\rhaco\database\DbUtilPostgreSQL.php:46] [Resource id #314] update WORKSTYLE_TASK set CONTENTS = 'リリース。',ESTIMATED_MAN_HOUR = 0,TAG_LIST = NULL,UPDATE_DATE = to_timestamp('2007/02/19 13:58:21','YYYY/MM/DD HH24:MI:SS'),CREATE_DATE = to_timestamp('2007/02/19 11:06:35','YYYY/MM/DD HH24:MI:SS'),DEADEND_DATE = 0,PRIORITY = 3,STATUS_ID = 7 where TASK_ID = 1 [Error 2007/02/19 13:58:21]:[Q:\DEV\Project\rhaco\database\DbUtilPostgreSQL.php:53] ERROR: column "deadend_date" is of type timestamp without time zone but expression is of type integer at character 237 HINT: You will need to rewrite or cast the expression.
なぜか、0を設定しようとしている。
とりあえずは、rhacoを無理やり修正して逃げてみた。
Index: DbUtilPostgreSQL.php =================================================================== --- DbUtilPostgreSQL.php (リビジョン 642) +++ DbUtilPostgreSQL.php (作業コピー) @@ -45,7 +45,8 @@ if($this->connection){ Logger::debug(Message::_("[{1}] {2}",$this->connection,$sql)); - $this->resourceId = @pg_query($this->connection,$sql); + $sql = mb_eregi_replace("DEADEND_DATE = 0,", "", $sql); + $this->resourceId = @pg_query($this->connection,$sql); $error = @pg_last_error($this->connection); if(!empty($error)){
あとで動作をちゃんと追っかけてみよう。