resolves gh-91 to insure that int and floats are not set as strings in SQL defaults

This commit is contained in:
2017-06-05 21:18:32 +01:00
parent 5e36ede2ac
commit 3ad9ae8b8f
271 changed files with 485 additions and 474 deletions

View File

@ -4864,7 +4864,14 @@ class Interpretation extends Fields
}
elseif ($default == 0 || $default)
{
$default = $data['null_switch']." DEFAULT '".$default."'";
if (is_numeric($default))
{
$default = $data['null_switch']." DEFAULT ".$default;
}
else
{
$default = $data['null_switch']." DEFAULT '".$default."'";
}
}
elseif ($data['null_switch'] === 'NULL')
{
@ -6814,8 +6821,8 @@ class Interpretation extends Fields
* @param $parentKey
* @param $parent_key
* @param $globalKey
* @return string
*/
* @return string
*/
public function setListQueryLinked($viewName_single, $viewName_list, $functionName, $key, $_key, $parentKey, $parent_key, $globalKey)
{
// check if this view has category added