[MDEV-5273] Prepared statement doesn't return metadata after prepare Created: 2013-11-11 Updated: 2016-01-28 Resolved: 2016-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 10.0.5, 5.5.33a |
| Fix Version/s: | 10.1.11 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Georg Richter | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
all platforms |
||
| Sprint: | 10.1.11 |
| Description |
|
According to the documentation metadata for a prepared statement should be available after preparing the statement: "mysql_stmt_field_count() can be called after you have prepared a statement by invoking mysql_stmt_prepare().". This doesn't work with all kind pf prepared statements. How to repeat:
Output:
|
| Comments |
| Comment by Sergei Golubchik [ 2013-11-14 ] |
|
Is 5.5 affected too? |
| Comment by Georg Richter [ 2013-11-14 ] |
|
Yes, 5.5 fails too. |
| Comment by Alexey Botchkov [ 2014-01-25 ] |
|
This is a problem for a whole lot of SHOW commands. The list of affected includes: I quess the nice solution for it is to extract the metadata-creation part out of the |
| Comment by Alexey Botchkov [ 2016-01-26 ] |
|
Fixing patch. It's for the SHOW CREATE command only. If it's approved, other commands can be easily fixed |
| Comment by Sergei Golubchik [ 2016-01-26 ] |
|
looks good! |
| Comment by Alexey Botchkov [ 2016-01-27 ] |
|
Consequitive fixes: |