Commit e59bbc2f authored by Juozas Kaziukenas's avatar Juozas Kaziukenas

Fixed PdoSqlsrv date and time types

parent c9594979
...@@ -405,7 +405,7 @@ class MsSqlPlatform extends AbstractPlatform ...@@ -405,7 +405,7 @@ class MsSqlPlatform extends AbstractPlatform
*/ */
public function getTimeTypeDeclarationSQL(array $fieldDeclaration) public function getTimeTypeDeclarationSQL(array $fieldDeclaration)
{ {
return 'TIME'; return 'TIME(0)';
} }
/** /**
...@@ -547,6 +547,14 @@ class MsSqlPlatform extends AbstractPlatform ...@@ -547,6 +547,14 @@ class MsSqlPlatform extends AbstractPlatform
return 'Y-m-d H:i:s.u'; return 'Y-m-d H:i:s.u';
} }
/**
* @override
*/
public function getDateTimeTzFormatString()
{
return $this->getDateTimeFormatString();
}
/** /**
* @override * @override
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment