Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-63: missing time and date SQL declaration for all platforms #5139

Closed
doctrinebot opened this issue Oct 27, 2009 · 5 comments
Closed

DDC-63: missing time and date SQL declaration for all platforms #5139

doctrinebot opened this issue Oct 27, 2009 · 5 comments
Assignees
Labels
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user chriswest:

The following SQL deleration functions are missing / incomplete within all Platform classes:

public function getDateTypeDeclarationSql(array $fieldDeclaration)
public function getTimeTypeDeclarationSql(array $fieldDeclaration)

This leads to fatal errors when using time column definitions with e.g. a mysql backend:
PHP Fatal error: Call to undefined method Doctrine\DBAL\Platforms\MySqlPlatform::getTimeTypeDeclarationSql() .../doctrine/lib/Doctrine/DBAL/Types/TimeType.php

Patch attached (I've used the oracle and mssql declarations from doctrine 1.x, "DATE' was used for both oracle 'date' and 'time'c olumns...).
Also, the function getTimeTypeDeclarationSql() was completely missing in AbstractPlatform.

@doctrinebot
Copy link
Author

Comment created by romanb:

Is this a patch against HEAD? I'm asking because at least getDateTypeDeclarationSql seems to be present and functional in the latest code. getTimeTypeDeclarationSql seems to be missing indeed. Sorry for that. Will be scheduled for the soon to come alpha3 release.

@doctrinebot
Copy link
Author

Comment created by chriswest:

Sorry, maybe I had to be more precise:

  • getTimeTypeDeclarationSql is missing for any platform

  • both are missing for oracle and mssql

    (that's what I've included in the patch)

Anyway: No need for you to be sorry :) You're doing an awesome job with doctrine and I appreciate it a lot.

@doctrinebot
Copy link
Author

Comment created by @beberlei:

Applied and fixed, thanks for the patch.

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot
Copy link
Author

Imported 1 attachments from Jira into https://gist.github.com/1e60f0e02912be9090a1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants