protected override void ProcessRecord() { bool quotedIdentifier; if (quotedIdentifierOff) { quotedIdentifier = false; } else { quotedIdentifier = true; } try { SQLParser parser = new SQLParser(sqlVersion, quotedIdentifier, inputScript); WriteObject(true); } catch (Exception ex) { WriteObject(false); ErrorRecord errorRecord = new ErrorRecord(ex, "InvalidSQLScript", ErrorCategory.InvalidData, ex.Message); WriteError(errorRecord); } }
private void Generate(Sql80ScriptGenerator scripter, bool quotedIdentifier, String inputScript) { SQLParser parser = new SQLParser(SqlVersion.Sql80, quotedIdentifier, inputScript); scripter.GenerateScript(parser.Fragment, out script); }