TablePlus icon indicating copy to clipboard operation
TablePlus copied to clipboard

Can't filter DATETIME by valid query: "Incorrect DATETIME value: NOW() - INTERVAL 5 MINUTE"

Open ryaudio opened this issue 2 years ago • 0 comments

  1. Which driver are you using and version of it (Ex: PostgreSQL 10.0): MySQL 8.0.35

  2. Which TablePlus build number are you using (the number on the welcome screen, Ex: build 81): 524

  3. The steps to reproduce this issue:

Try to filter a DATETIME column using NOW() - INTERVAL 5 MINUTE and you will get the error:

"Incorrect DATETIME value: NOW() - INTERVAL 5 MINUTE"

I guess you could say that should be a "Raw SQL" filter, but I think it makes perfect sense to support actual queries like this for DATETIME, DATE, etc.

ryaudio avatar Dec 28 '23 23:12 ryaudio