Add DateTime support to database binding layer.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell
2012-04-10 15:03:42 -05:00
parent 7d5b6b3748
commit 94b8582865
7 changed files with 32 additions and 15 deletions

View File

@@ -11,6 +11,13 @@ class SQLServer extends Grammar {
*/
protected $wrapper = '[%s]';
/**
* The format for properly saving a DateTime.
*
* @var string
*/
public $datetime = 'Y-m-d H:i:s.000';
/**
* Compile a SQL SELECT statement from a Query instance.
*