We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e16fa52 commit 0e9ef5dCopy full SHA for 0e9ef5d
Database/Schema/SybaseGrammar.php
@@ -371,7 +371,10 @@ protected function typeDouble(Fluent $column)
371
*/
372
protected function typeDecimal(Fluent $column)
373
{
374
- return "decimal({$column->total}, {$column->places})";
+ if($column->places == 0)
375
+ return "numeric({$column->total}, {$column->places})";
376
+ else
377
+ return "decimal({$column->total}, {$column->places})";
378
}
379
380
/**
0 commit comments