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

Closed
doctrinebot opened this Issue Mar 17, 2011 · 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 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