6.0.0-alpha14
6/25/25

[#7409] error creating tables with setup.php
Summary error creating tables with setup.php
Queue Horde Groupware Webmail Edition
Queue Version 1.2
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester greg (at) proxyconcept (dot) net
Created 09/29/2008 (6113 days ago)
Due
Updated 10/24/2008 (6088 days ago)
Assigned 10/07/2008 (6105 days ago)
Resolved 10/24/2008 (6088 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/24/2008 10:50:05 PM Jan Schneider Comment #4
State ⇒ Resolved
Reply to this comment
Hopefully fixed this time for 1.2.1, with a patched schema validator.
10/24/2008 10:47:08 PM CVS Commit Comment #3 Reply to this comment
10/07/2008 01:15:16 PM Jan Schneider Comment #2
Assigned to Jan Schneider
Patch ⇒ No
State ⇒ Assigned
Reply to this comment
09/29/2008 06:02:44 PM greg (at) proxyconcept (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ error creating tables with setup.php
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Reply to this comment
When I launch ./scripts/setup.php and try to create database tables, I 
have this error :



Creating database...

[ ERROR! ] Creating the tables failed. Please see the manual at docs/INSTALL

            for how to setup the database manually. Error messages:

MDB2 Error: unknown error

_doQuery: [Error message: Could not execute statement]

[Last executed query: CREATE  TABLE horde_alarms (alarm_id 
VARCHAR(255) DEFAULT ' ' NOT NULL, alarm_uid VARCHAR(255) DEFAULT 
NULL, alarm_start TIMESTAMP without time zone DEFAULT '0000-00-00 
00:00:00' NOT NULL, alarm_end TIMESTAMP without time zone DEFAULT 
'0000-00-00 00:00:00', alarm_methods VARCHAR(255) DEFAULT NULL, 
alarm_params TEXT, alarm_title VARCHAR(255) DEFAULT ' ' NOT NULL, 
alarm_text TEXT, alarm_snooze TIMESTAMP without time zone DEFAULT 
'0000-00-00 00:00:00', alarm_dismissed SMALLINT DEFAULT 0 NOT NULL, 
alarm_internal TEXT)]

[Native message: ERREUR:  Valeur du champ date/time en dehors des 
limites : «0000-00-00 00:00:00»

HINT:  Peut-être avez-vous besoin d'un paramètrage «datestyle» différent.]



The timestamps default values are bad : maybe '0000-00-00 00:00:00' 
have a correct syntax but it's not a valid date. I replace this 
default date with '0001-01-01 00:00:00' and the script runs fine.



So quick correction :

perl -i.orig -pe "s/0000\-00\-00/0001-01-01/g" ./scripts/sql/create.xml


Saved Queries