Skip to content


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

doctrinebot opened this Issue · 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
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.4 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.