simple-ddl-parser icon indicating copy to clipboard operation
simple-ddl-parser copied to clipboard

DDLParserError Unknown symbol '@'

Open ivbeg opened this issue 2 years ago • 1 comments

Describe the bug Error DDLParserError: Unknown symbol '@' happens on certain files

To Reproduce Steps to reproduce the behavior:

  1. Take file https://github.com/timduru/platform-external-chromium_org/blob/16a18d799b9def43936f9f1fa2e325bcf616762c/components/test/data/web_database/version_30.sql?raw=True
  2. Use code ddl = parse_from_file(filepath)
  3. See error DDLParserError: Unknown symbol '@'

Expected behavior No error expected

More examples Files with same error:

  • https://github.com/sacids/poe/blob/c749beeff9be9750d905e2c241056c4f33674fe6/assets/start_db.sql?raw=True
  • https://github.com/billmeyer/spring-petclinic-microservices-splunk/blob/b0c29bd2b8fda684766eb9034df5fde26983445d/spring-petclinic-visits-service/src/main/resources/db/mysql/schema.sql?raw=True
  • https://github.com/ImprobabilityCast/Website/blob/a7d560abdc171dc9392038a023cd75065e58f350/wwwroot/mood/db_setup.sql?raw=True
  • https://github.com/4zatero7/FirmaDB/blob/9357992a6117a7ed0a3e136ce80b41a41991ba30/DB%20Input/Kunde.sql?raw=True
  • https://github.com/gaoxiang9457/debezium-docker-images/blob/b1a15e0f71ce5f27471fc41142317ab206cb607f/examples/mysql-gtids/0.10/inventory.sql?raw=True

ivbeg avatar Jul 01 '22 18:07 ivbeg

issue with @ was fixed in 0.27.0 but there is still issues with current ddl - so continue work on it

xnuinside avatar Aug 06 '22 21:08 xnuinside