summaryrefslogtreecommitdiff
path: root/sql/sql_cursor.cc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-11-10 17:05:19 +0300
committerkonstantin@mysql.com <>2005-11-10 17:05:19 +0300
commit0d4dbfd1b77e35fa3db6f70d4183528006166a11 (patch)
treec609efd3f208d924681f08beac733023c4e36177 /sql/sql_cursor.cc
parent2636f3cc6f9715fe031b45b83e2cc8a1e1f861d0 (diff)
downloadmariadb-git-0d4dbfd1b77e35fa3db6f70d4183528006166a11.tar.gz
Fix a comment.
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r--sql/sql_cursor.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc
index 07be9efa6ac..fc169fe18e8 100644
--- a/sql/sql_cursor.cc
+++ b/sql/sql_cursor.cc
@@ -561,12 +561,13 @@ int Materialized_cursor::open(JOIN *join __attribute__((unused)))
if (rc == 0)
{
/*
- Now send the result set metadata to the client. We need to do it
- here, as in Select_materialize::send_fields the exact column types
- are not yet known. The new types may differ from the original ones
- sent at prepare if some of them were altered by MySQL HEAP tables
- mechanism -- used when create_tmp_field_from_item may alter the
- original column type.
+ Now send the result set metadata to the client. We need to
+ do it here, as in Select_materialize::send_fields the items
+ for column types are not yet created (send_fields requires
+ a list of items). The new types may differ from the original
+ ones sent at prepare if some of them were altered by MySQL
+ HEAP tables mechanism -- used when create_tmp_field_from_item
+ may alter the original column type.
We can't simply supply SEND_EOF flag to send_fields, because
send_fields doesn't flush the network buffer.