| Bug #3537 | Like statement with datetime column | ||
|---|---|---|---|
| Submitted: | 22 Apr 2004 10:37 | Modified: | 29 Apr 2004 4:23 |
| Reporter: | Michael Taggart | Email Updates: | |
| Status: | Closed | ||
| Category: | Server | Severity: | S3 (Non-critical) |
| Version: | 4.1.1 Alpha Standard | OS: | Linux (Linux Redhat 7.2) |
| Assigned to: | Target Version: | ||
[22 Apr 2004 10:37]
Michael Taggart
[22 Apr 2004 10:41]
Michael Taggart
Mike again here. I tested it out with a new table created with 4.1.1 Alpha Standard and the same problem exists when trying to do a LIKE statement on the datetime column. So, it's not just an upgrade issue.
[29 Apr 2004 4:23]
Miguel Solorzano
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html
Additional info:
mysql> select version();
+------------------------+
| version() |
+------------------------+
| 4.1.1a-alpha-max-debug |
+------------------------+
1 row in set (0.01 sec)
mysql> select * from t where my_time like "2004-04-28%";
Empty set (0.00 sec)
mysql> select version();
+-----------------+
| version() |
+-----------------+
| 4.1.2-alpha-max |
+-----------------+
1 row in set (0.25 sec)
mysql> select * from t where my_time like "2004-04-28%";
+---------------------+
| my_time |
+---------------------+
| 2004-04-28 12:12:12 |
| 2004-04-28 12:12:14 |
+---------------------+
2 rows in set (0.09 sec)
