Skip to content

Bug: date_add prettry format is err #16712

Open
@TCeason

Description

@TCeason

Prettry format is err:

:) select date_add('year', 1, now()); --BUG

SELECT DATE_ADD(YEAR, INTERVAL 1, now())
SELECT DATE_ADD(YEAR, INTERVAL 1, now())
error: APIError: ResponseError with 1005: error: 
  --> SQL:1:32
  |
1 | SELECT DATE_ADD(YEAR, INTERVAL 1, now())
  | ------ ---------               ^ unexpected `1`, expecting `)` or `,`
  | |      |       |                
  | |      |       while parsing `(<expr> [, ...])`
  | |      while parsing expression
  | while parsing `SELECT ...`

Originally posted by @TCeason in #16711 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions