Closed macosforgebot closed 10 years ago
carlos@… originally submitted this as attachment:001-Fix-for-Identifier-instances.diff:ticket:486
Diff against branches/release/CalendarServer-4.1.1-dev
@glyph originally submitted this as comment:1:ticket:486
Thanks for submitting this patch.
A few minor points:
test_sqlparse.py
. If you don't feel up to it, don't worry, we'll pick it up eventually.Thanks again,
-glyph
@glyph originally submitted this as comment:2:ticket:486
mail@… originally submitted this as comment:4:ticket:486
btw. issue #469 modifies the same line of code.
@wsanchez originally submitted this as comment:5:ticket:486
carlos@… originally submitted this as comment:8:ticket:486
Yep, same as #469 --- feel free to close this one
@wsanchez originally submitted this as comment:9:ticket:486
@wsanchez originally submitted this as comment:10:ticket:486
carlos@… originally submitted this as ticket:486
When parsing the following SQL fragment:
sqlparse
generates an instance of typesqlparse.sql.Identifier
to represent thevarchar
keyword.With my version of
sqlparse
(0.1.3), the fieldvalue
of that instance isNone
, and CalendarServer dies attwext.enterprise.dal.parseschema._ColumnParser.parseColumn()
.The attached patch (diff against branches/release/CalendarServer-4.1.1-dev) attemts to address this.