diff options
author | msvensson@neptunus.(none) <> | 2006-11-28 21:11:05 +0100 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-11-28 21:11:05 +0100 |
commit | cc747a02b353da17d32be9919e11d04e7a1d394c (patch) | |
tree | 89185b0d10c5b8c12807ce8fcb41122c9cf5c18e /sql-common | |
parent | 80d6de7e5698cff48c5f7cc10962196716d0ea91 (diff) | |
parent | 08e0e06eabd441b579face88fe7d80cd4639d223 (diff) | |
download | mariadb-git-cc747a02b353da17d32be9919e11d04e7a1d394c.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1
into neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 3acd763c054..87e22624dd9 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1173,6 +1173,8 @@ unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields, for (row=data->data; row ; row = row->next,field++) { uchar *pos; + /* fields count may be wrong */ + DBUG_ASSERT ((field - result) < fields); cli_fetch_lengths(&lengths[0], row->data, default_value ? 8 : 7); field->catalog = strdup_root(alloc,(char*) row->data[0]); field->db = strdup_root(alloc,(char*) row->data[1]); |