summaryrefslogtreecommitdiff
path: root/myisammrg
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-06-17 20:58:09 +0300
committerunknown <Sinisa@sinisa.nasamreza.org>2002-06-17 20:58:09 +0300
commit4caf38387a95f1cf333628541d4604c5c4a11ef7 (patch)
tree6d6e9fa6a893b908c345c7c3841b5e4e83e1f103 /myisammrg
parentc99fd2caef34cab1677f44cb5c2337d7f6a5c8db (diff)
downloadmariadb-git-4caf38387a95f1cf333628541d4604c5c4a11ef7.tar.gz
My previous patch was not good at all.
This one is better, but should not be final. Better fix is to make some changes in ha_myisammrg::index_read This patch also reverts my previous one ...
Diffstat (limited to 'myisammrg')
-rw-r--r--myisammrg/myrg_rprev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/myisammrg/myrg_rprev.c b/myisammrg/myrg_rprev.c
index bd7e6a1f6d2..cb56acd1a73 100644
--- a/myisammrg/myrg_rprev.c
+++ b/myisammrg/myrg_rprev.c
@@ -25,6 +25,9 @@ int myrg_rprev(MYRG_INFO *info, byte *buf, int inx)
int err;
MI_INFO *mi;
+ if (!info || !info->current_table)
+ return HA_ERR_UNSUPPORTED;
+
/* at first, do rprev for the table found before */
if ((err=mi_rprev(info->current_table->table,NULL,inx)))
{