DBAL-101: Undefined index "length" in SqliteSchemaManager #939

doctrinebot opened this Issue Mar 17, 2011 · 3 comments

2 participants


Jira issue originally created by user k-fish:

If not giving length for numeric columns when using SQLite, I got an undefined index error around line 155 in SqliteSchemaManager. I fixed it with this:

             case 'numeric':
-                list($precision, $scale) = array_map('trim', explode(', ', $tableColumn['length']));
<ins>                if (array*key*exists('length', $tableColumn)) {
</ins>                    list($precision, $scale) = array_map('trim', explode(', ', $tableColumn['length']));
<ins>                } else {
</ins>                    $precision = $scale = null;
+                }
                 $length = null;

Git patch attached.


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment