mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Cleaned up rnd_init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -206,6 +206,10 @@ select * from t4 where a = 7 and b = 16 order by a;
|
|||||||
select * from t4 where a = 7 and b = 17 order by a;
|
select * from t4 where a = 7 and b = 17 order by a;
|
||||||
select * from t4 where a = 7 and b != 16 order by b;
|
select * from t4 where a = 7 and b != 16 order by b;
|
||||||
|
|
||||||
|
select x1.a, x1.b from t2 x1, t2 x2 where x1.b = x2.b order by x1.a;
|
||||||
|
select a, b FROM t2 outer_table where
|
||||||
|
a = (select a from t2 where b = outer_table.b ) order by a;
|
||||||
|
|
||||||
#
|
#
|
||||||
# update records
|
# update records
|
||||||
#
|
#
|
||||||
|
@ -2013,10 +2013,12 @@ int ha_ndbcluster::rnd_init(bool scan)
|
|||||||
DBUG_ENTER("rnd_init");
|
DBUG_ENTER("rnd_init");
|
||||||
DBUG_PRINT("enter", ("scan: %d", scan));
|
DBUG_PRINT("enter", ("scan: %d", scan));
|
||||||
// Check if scan is to be restarted
|
// Check if scan is to be restarted
|
||||||
if (cursor && scan)
|
if (cursor)
|
||||||
|
{
|
||||||
|
if (!scan)
|
||||||
|
DBUG_RETURN(1);
|
||||||
cursor->restart();
|
cursor->restart();
|
||||||
else
|
}
|
||||||
DBUG_RETURN(1);
|
|
||||||
index_init(table->primary_key);
|
index_init(table->primary_key);
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user