Ticket #874 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

Generating yaml from mssql with timestamp column does not work

Reported by: zomg Owned by: somebody
Priority: minor Milestone: 0.10.4
Component: Other Version: 0.10.0
Severity: Keywords: mssql
Cc: Has Test:
Status: Has Patch:

Description

When using generateYamlFromDb with mssql adapter, and you have a table with a timestamp typed column, the following exceptions occurs:

Fatal error: Uncaught exception 'Doctrine_DataDict_Exception' with message 'unknown database attribute type: timestamp' in C:xampphtdocshelpdesklibraryDoctrineDoctrineDataDictMssql.php:186 Stack trace: #0 C:xampphtdocshelpdesklibraryDoctrineDoctrineImportMssql.php(78): Doctrine_DataDict_Mssql->getPortableDeclaration(Array) #1 C:xampphtdocshelpdesklibraryDoctrineDoctrineImport.php(220): Doctrine_Import_Mssql->listTableColumns('page_contents') #2 C:xampphtdocshelpdesklibraryDoctrineDoctrine.php(700): Doctrine_Import->importSchema('/tmp/tmp_doctri...', Array, Array) #3 C:xampphtdocshelpdesklibraryDoctrineDoctrine.php(718): Doctrine::generateModelsFromDb('/tmp/tmp_doctri...', Array, Array) #4 C:xampphtdocshelpdeskindex.php(31): Doctrine::generateYamlFromDb('./yaml') #5 {main} thrown in C:xampphtdocshelpdesklibraryDoctrineDoctrineDataDictMssql.php on line 186

Server is MS SQL Server 2008

Change History

Changed 16 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [4076]) fixes #874

Note: See TracTickets for help on using tickets.