protected override void OutputIdentifier( string identifier, StringBuilder output, string sourceSql, ref int pos) { int num = pos; TextScanner.SkipWhiteSpaces(sourceSql, ref num); if (TextScanner.Pass('(', sourceSql, ref num)) { TextScanner.SkipWhiteSpaces(sourceSql, ref num); if (TextScanner.Pass(')', sourceSql, ref num) && string.Equals(identifier, "GETDATE", StringComparison.InvariantCultureIgnoreCase)) { pos = num; output.Append("SYSDATE "); } else { base.OutputIdentifier(identifier, output, sourceSql, ref pos); } } else if (InDbOracleDatabase.IsReservedWord(identifier)) { base.OutputIdentifier(identifier, output, sourceSql, ref pos); } else { this.OutputQualifiedIdentifier(identifier, output, sourceSql, ref pos); } }
protected void PassWhiteSpaces(StringBuilder output, string sourceSql, ref int pos) { int startIndex = pos; TextScanner.SkipWhiteSpaces(sourceSql, ref pos); if (pos <= startIndex) { return; } this.OutputWhiteSpaces(sourceSql.Substring(startIndex, pos - startIndex), output, sourceSql, ref pos); }