Restructured sql file syntax errors