Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

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;
                 break;

Git patch attached.

@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

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.