mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-41586 libaries: Fix issues with scale in sqlsrv libraries
0 is a valid value null is the default scale we set in other DBs
This commit is contained in:
parent
e3359b87df
commit
6cff6350df
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ class sqlsrv_native_moodle_database extends moodle_database {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scale
|
// Scale
|
||||||
$info->scale = $rawcolumn->scale ? $rawcolumn->scale : false;
|
$info->scale = $rawcolumn->scale;
|
||||||
|
|
||||||
// Prepare not_null info
|
// Prepare not_null info
|
||||||
$info->not_null = $rawcolumn->is_nullable == 'NO' ? true : false;
|
$info->not_null = $rawcolumn->is_nullable == 'NO' ? true : false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue