It appears that my automatic CakePHP table columns - created and modified - are causing an error when I migrated to Microsoft SQL Server 2005. I found this old ticket, but nothing that seemed to resolve the issue.
Here is the error:
Warning (512): SQL Error: Conversion failed when converting datetime from character string.
[CORE/cake/libs/model/datasources/dbo_source.php, line 673]
[main] - APP/webroot/index.php, line 83
Query: INSERT INTO [user_log] ([created], [user_id]) VALUES ('NULL', 1)
This is my schema:
created datetime NULL CONSTRAINT [DF_user_log_created] DEFAULT (NULL),
I also tried:
created datetime NULL,
Any direction would be appreciated. Running Cake 1.3 and MS SQL 2005.