mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix for crummy compiler that didn't udnerstand for declaration. Another fix for example storage engine to pass, not skip, test.
mysql-test/r/have_exampledb.require: Fix for test for examples. sql/examples/ha_archive.cc: Fix for compiler that had problem with ANSI C.
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
Variable_name Value
|
Variable_name Value
|
||||||
have_exampledb YES
|
have_example_engine YES
|
||||||
|
@@ -528,6 +528,7 @@ error:
|
|||||||
int ha_archive::write_row(byte * buf)
|
int ha_archive::write_row(byte * buf)
|
||||||
{
|
{
|
||||||
z_off_t written;
|
z_off_t written;
|
||||||
|
Field_blob **field;
|
||||||
DBUG_ENTER("ha_archive::write_row");
|
DBUG_ENTER("ha_archive::write_row");
|
||||||
|
|
||||||
statistic_increment(ha_write_count,&LOCK_status);
|
statistic_increment(ha_write_count,&LOCK_status);
|
||||||
@@ -543,7 +544,7 @@ int ha_archive::write_row(byte * buf)
|
|||||||
We should probably mark the table as damagaged if the record is written
|
We should probably mark the table as damagaged if the record is written
|
||||||
but the blob fails.
|
but the blob fails.
|
||||||
*/
|
*/
|
||||||
for (Field_blob **field=table->blob_field ; *field ; field++)
|
for (field= table->blob_field ; *field ; field++)
|
||||||
{
|
{
|
||||||
char *ptr;
|
char *ptr;
|
||||||
uint32 size= (*field)->get_length();
|
uint32 size= (*field)->get_length();
|
||||||
|
Reference in New Issue
Block a user