summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@bisonxp.(none)>2002-07-09 10:39:22 +0500
committerunknown <hf@bisonxp.(none)>2002-07-09 10:39:22 +0500
commit615c1e4fcf8943a19c6f246cacf5360cf9967298 (patch)
treeb7c8d0abe34e1fe27746bc83563c83b40746b859 /libmysqld
parent9b76862b7f66bcd9ae11282aac482d2700ca8d0c (diff)
downloadmariadb-git-615c1e4fcf8943a19c6f246cacf5360cf9967298.tar.gz
Minor fixes
libmysqld/lib_sql.cc: Working when LIMIT is on sql/sql_handler.cc: Usual fix to handle embedded case properly sql/sql_select.cc: Usual fix to handle embedded case properly sql/sql_table.cc: Usual fix to handle embedded case properly BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index ac330919d0c..610d3d66ec9 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -813,6 +813,12 @@ bool select_send::send_data(List<Item> &items)
DBUG_ENTER("send_data");
+ if (unit->offset_limit_cnt)
+ { // using limit offset,count
+ unit->offset_limit_cnt--;
+ DBUG_RETURN(0);
+ }
+
thd->packet.length(0);
while ((item=li++))
{