| Bug #2209 | mysql->server_status doesn't contain BAD_INDEX/NO_INDEX flags | ||
|---|---|---|---|
| Submitted: | 25 Dec 2003 8:23 | Modified: | 27 Jan 2004 4:56 |
| Reporter: | Georg Richter | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Embedded Library ( libmysqld ) | Severity: | S3 (Non-critical) |
| Version: | 4.1.2 | OS: | Linux (Linux) |
| Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[27 Jan 2004 4:56]
Alexey Botchkov
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:
bk commit - 4.1 tree (hf:1.1677) 27.01.2004

Description: When executing a query which doesn't use an index (or use a bad index), mysql->server_status doesn't contain flags SERVER_QUERY_NO_INDEX_USED/SERVER_QUERY_BAD_INDEX_USED How to repeat: ... mysql_query(mysql, "DROP TABLE IF EXISTS foo"); mysql_query(mysql, "CREATE TABLE foo (a int)"); mysql_query(mysql, "INSERT INTO foo VALUES (1),(2),(3),(4),(5),(6)"); mysql_query(mysql, "UPDATE foo SET a =1 WHERE a=5"); if (mysql->server_status & SERVER_QUERY_NO_INDEX_USED) printf("No index used!\n"); ...