Bug #21111 | Migrtion of default values (getdate()) from MSSQL to mysql | ||
---|---|---|---|
Submitted: | 18 Jul 2006 11:20 | Modified: | 8 Aug 2006 15:20 |
Reporter: | Lava Kumar Inampudi | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Migration Toolkit | Severity: | S3 (Non-critical) |
Version: | 1.0.25/1.1.1 Beta | OS: | Windows (Windows 2000 sp4 professional) |
Assigned to: | CPU Architecture: | Any |
[18 Jul 2006 11:20]
Lava Kumar Inampudi
[18 Jul 2006 14:14]
MySQL Verification Team
Thank you for the bug report. I was able to repeat. `pubs_dbo`.`employee` --------------------- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'getdate(), PRIMARY KEY (`emp_id`), INDEX `employee_ind` (`lname`, `fname`, `' at line 9
[8 Aug 2006 15:20]
Michael G. Zinner
This is now fixed in the source repository and will be included into the next release. DATETIME/TIMESTAMP DEFAULT getdate(); is now migrated to TIMESTAMP DEFAULT CURRENT_TIMESTAMP; Please note that other functions used in the DEFAULT clause need to be migrated automatically as MySQL does not support functions for DEFAULT values.