diff options
author | unknown <brian@zim.(none)> | 2005-02-24 12:42:06 -0800 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2005-02-24 12:42:06 -0800 |
commit | 48f0b2774d0285cd56569cb85863b7e473e348c9 (patch) | |
tree | 8f365cb3c989188414d624b96072e21ec8b0f099 /sql/examples | |
parent | e87457615924faa92b9d35c082b456113267b600 (diff) | |
download | mariadb-git-48f0b2774d0285cd56569cb85863b7e473e348c9.tar.gz |
Solved bug 8691.
Funny sometimes how things work when in reality you would think it would crash pretty hard :)
sql/examples/ha_archive.cc:
Solves bug #8691. This was reported in an internal build. Renamed ptr to bptr.
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc index 98ed65fc786..e0c9173f8da 100644 --- a/sql/examples/ha_archive.cc +++ b/sql/examples/ha_archive.cc @@ -575,7 +575,7 @@ error: int ha_archive::write_row(byte * buf) { z_off_t written; - uint *ptr, *end; + uint *bptr, *end; DBUG_ENTER("ha_archive::write_row"); if (share->crashed) @@ -596,16 +596,16 @@ int ha_archive::write_row(byte * buf) We should probably mark the table as damagaged if the record is written but the blob fails. */ - for (ptr= table->s->blob_field, end=ptr + table->s->blob_fields ; - ptr != end ; - ptr++) + for (bptr= table->s->blob_field, end=bptr + table->s->blob_fields ; + bptr != end ; + bptr++) { char *ptr; - uint32 size= ((Field_blob*) table->field[*ptr])->get_length(); + uint32 size= ((Field_blob*) table->field[*bptr])->get_length(); if (size) { - ((Field_blob*) table->field[*ptr])->get_ptr(&ptr); + ((Field_blob*) table->field[*bptr])->get_ptr(&ptr); written= gzwrite(share->archive_write, ptr, (unsigned)size); if (written != size) goto error; |