simple-ddl-parser
simple-ddl-parser copied to clipboard
AttributeError: 'NoneType' object has no attribute 'update'
Describe the bug AttributeError: 'NoneType' object has no attribute 'update' for certain SQL files
To Reproduce Steps to reproduce the behavior:
- Take file https://github.com/svn2github/oa-system/blob/c698a0c09bbd6b902700e9ccab7018470c538e70/tags/1.0.0/doc/dbchange_20081128.sql?raw=True
- Use code ddl = parse_from_file(filepath)
- See error AttributeError: 'NoneType' object has no attribute 'update' for certain SQL files
Expected behavior DDLParserError with a clear error explanation
More examples
- https://github.com/tarari/kapvertise/blob/735c5e4b5e854c595c590966d63f6db1fdec1908/install/app.sql?raw=True
- https://github.com/Seifje/TokenInput_Integration/blob/795d2ef7250d13729292c70ae1afbc28461de78b/setup/db/db/schema-22beta3to22beta4.sql?raw=True
- https://github.com/CEYA-Inc/Project_Management_Software/blob/34c4831783c0bce58612d8bbbfe5cf3f15bc294f/Assets/Scripts/CreateCeyaPmgdb_Final.sql?raw=True
- https://github.com/christiandoxa/todo_app_node/blob/4ea85daf9f13903b9ca4da956ef335cb541cb8ad/todo_app_create.sql?raw=True
- https://github.com/jdell/jdelldev/blob/5d7c760574b67e46b9b099587d11c970c1cb4d72/net/gesClinica/gesClinica.lib.bl/_sql/upgrade_3.sql?raw=True