Bug #44711 Prepared statements should be lazy to send metadata at execute stage

Submitted: 7 May 2009 9:12
Reporter: Domas Mituzas Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Prepared statements Severity:S4 (Feature request)
Version:5.1, ... OS:Any
Assigned to: CPU Architecture:Any

[7 May 2009 9:12] Domas Mituzas
Description:
Prepared statements send metadata at every execute, which is resource waste, considering that they're made entirely to avoid such kind of waste :) 

How to repeat:
PREPARE x FROM "SELECT * FROM table";
EXECUTE x;
EXECUTE x;

inspect packets, observe metadata being sent multiple times

Suggested fix:
cache metadata at client side. in case metadata changes on server-side, signal the client about that at the beginning of PS execute resultset read.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.