예제 #1
0
 protected override void VisitNowFunctionToken(NowFunctionToken token)
 {
     if (token.Utc)
     {
         State.Write(MySqlSymbols.UTC_TIMESTAMP);
     }
     else
     {
         State.Write(Symbols.NOW);
     }
     State.AddToTheEnd(Symbols.OpenParenthesis);
     State.AddToTheEnd(Symbols.CloseParenthesis);
 }
예제 #2
0
        protected override void VisitNowFunctionToken(NowFunctionToken token)
        {
            State.Write(Symbols.NOW);
            State.Write(Symbols.OpenParenthesis);
            State.Write(Symbols.CloseParenthesis);

            if (token.Utc)
            {
                State.Write(Symbols.AT);
                State.Write(Symbols.TIME);
                State.Write(Symbols.ZONE);
                //State.Write(Symbols.CurrentSetting);
                State.Write(Symbols.OpenParenthesis);
                VisitToken(Sql.Scalar(Symbols.UTC));
                State.Write(Symbols.CloseParenthesis);
            }
        }
예제 #3
0
 protected override void VisitNowFunctionToken(NowFunctionToken token)
 {
     if (token.Utc)
     {
         State.Write(Symbols.DATETIME);
         State.Write(Symbols.OpenParenthesis);
         State.Write(SqliteSymbols.current_timestamp);
         State.Write(Symbols.CloseParenthesis);
     }
     else
     {
         State.Write(Symbols.DATETIME);
         State.Write(Symbols.OpenParenthesis);
         State.Write(SqliteSymbols.current_timestamp);
         State.Write(Symbols.Comma);
         State.Write(Symbols.SingleQuote);
         State.Write(SqliteSymbols.localtime);
         State.Write(Symbols.SingleQuote);
         State.Write(Symbols.CloseParenthesis);
     }
 }
 protected override void VisitNowFunctionToken(NowFunctionToken token)
 {
     State.Write(Symbols.GETDATE);
     State.Write(Symbols.OpenParenthesis);
     State.Write(Symbols.CloseParenthesis);
 }
예제 #5
0
 protected override void VisitNowFunctionToken(NowFunctionToken token)
 {
     this.State.Write(token.Utc ? MySqlSymbols.UTC_TIMESTAMP : Symbols.NOW);
     State.AddToTheEnd(Symbols.OpenParenthesis);
     State.AddToTheEnd(Symbols.CloseParenthesis);
 }
예제 #6
0
 protected abstract void VisitNowFunctionToken(NowFunctionToken token);