summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <venu@myvenu.com>2003-07-04 10:54:10 -0700
committerunknown <venu@myvenu.com>2003-07-04 10:54:10 -0700
commitd30c9e8e810fb222eec8c87e1f32119b22db6c6c (patch)
tree70dd0a0f72dac9bf0ae76ff1ab53129b5edaa600
parent4ccada56f13de8bd27b2fa3d7e7601a05e403758 (diff)
downloadmariadb-git-d30c9e8e810fb222eec8c87e1f32119b22db6c6c.tar.gz
Fix for send_fields flush after a fix for windows slowdown issue
-rw-r--r--sql/sql_prepare.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index fcddc2d2252..c38fb44db1c 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -659,10 +659,13 @@ static bool mysql_test_select_fields(PREP_STMT *stmt, TABLE_LIST *tables,
wild_num, conds, og_num, order, group, having, proc,
select_lex, unit, 0))
DBUG_RETURN(1);
+#ifndef EMBEDDED_LIBRARY
if (send_prep_stmt(stmt, fields.elements) ||
thd->protocol_simple.send_fields(&fields, 0) ||
+ net_flush(&thd->net) ||
send_item_params(stmt))
DBUG_RETURN(1);
+#endif
join->cleanup();
}
DBUG_RETURN(0);