#1464: PostgreSQL timestampz support missing
-----------------------------------+----------------------------------------
Reporter: enrico | Owner: jwage
Type: enhancement | Status: new
Priority: minor | Milestone: 1.1.0
Component: Validators | Version: 1.0
Keywords: | Has_test: 0
Mystatus: Pending User Response | Has_patch: 0
-----------------------------------+----------------------------------------
Hello,
we use timestampz instead of timestamp in our PostgreSQL database. If I
try to save the model i'll get a validation exception caused by the
timestamp column.
Timestamp
{{{
2004-10-14 11:51:17
}}}
Timestampz
{{{
2004-10-14 11:51:17.621832+02
}}}
I guess the problem is based in ''Validator/Timestamp.php'' caused by the
regular expression:
{{{
if ( ! preg_match('/^ *[0-9]{4}-[0-9]{2}-[0-9]{2}
[0-9]{2}:[0-9]{2}:[0-9]{2} *$/', $value)) {
return false;
}
}}}
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1464>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---