From 246e9791dfdce019b6fa1a8c9b24de90e4f89856 Mon Sep 17 00:00:00 2001 From: Georgy Kutsurua Date: Thu, 19 Apr 2012 19:48:37 +0400 Subject: [PATCH] fix DBColumn default logic --- core/OSQL/DBColumn.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/OSQL/DBColumn.class.php b/core/OSQL/DBColumn.class.php index a7a5e9c863..3f0a29d5f7 100644 --- a/core/OSQL/DBColumn.class.php +++ b/core/OSQL/DBColumn.class.php @@ -176,7 +176,7 @@ public function toDialectString(Dialect $dialect) ? $dialect->literalToString(Dialect::LITERAL_TRUE) : $dialect->literalToString(Dialect::LITERAL_FALSE); else - $default = $dialect->valueToString($default); + $default = $dialect->valueToString($this->default); $out .= ' DEFAULT '.($default); }