Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 private void Generate(Sql80ScriptGenerator scripter, bool quotedIdentifier, String inputScript)
 {
     SQLParser parser = new SQLParser(SqlVersion.Sql80, quotedIdentifier, inputScript);
     scripter.GenerateScript(parser.Fragment, out script);
 }
Esempio n. 3
0
        private void Generate(Sql80ScriptGenerator scripter, bool quotedIdentifier, String inputScript)
        {
            SQLParser parser = new SQLParser(SqlVersion.Sql80, quotedIdentifier, inputScript);

            scripter.GenerateScript(parser.Fragment, out script);
        }