Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28032 database - retrofit signed info for decimal/float (improves…

… diffs detection)
  • Loading branch information...
commit d466e23c388d3c9f85457aff8735606caf6333a4 1 parent 50d32a2
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dml/mysqli_native_moodle_database.php
View
2  lib/dml/mysqli_native_moodle_database.php
@@ -499,7 +499,7 @@ public function get_columns($table, $usecache=true) {
$info->has_default = is_null($info->default_value) ? false : true;
$info->primary_key = ($rawcolumn->key === 'PRI');
$info->binary = false;
- $info->unsigned = null;
+ $info->unsigned = (stripos($rawcolumn->type, 'unsigned') !== false);
$info->auto_increment= false;
$info->unique = null;
Please sign in to comment.
Something went wrong with that request. Please try again.