diff options
author | unknown <petr@mysql.com> | 2005-11-06 02:11:12 +0300 |
---|---|---|
committer | unknown <petr@mysql.com> | 2005-11-06 02:11:12 +0300 |
commit | b0829011b8053058f0419aee48da03970654cbc6 (patch) | |
tree | 26cfc43e4f5200a600ec917cf0ceba7232e21053 /sql/examples | |
parent | 1b65c7041383073eee99deebe8569399f06e83ee (diff) | |
download | mariadb-git-b0829011b8053058f0419aee48da03970654cbc6.tar.gz |
Fix Bug#14672 Bug in deletion
mysql-test/r/csv.result:
correct result file
mysql-test/t/csv.test:
Add test for a bug
sql/examples/ha_tina.cc:
Add O_APPEND flag to my_open. We should always add rows to the end of file
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_tina.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc index f4544670ed9..91e42bfea31 100644 --- a/sql/examples/ha_tina.cc +++ b/sql/examples/ha_tina.cc @@ -166,7 +166,8 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table) thr_lock_init(&share->lock); pthread_mutex_init(&share->mutex,MY_MUTEX_INIT_FAST); - if ((share->data_file= my_open(data_file_name, O_RDWR, MYF(0))) == -1) + if ((share->data_file= my_open(data_file_name, O_RDWR|O_APPEND, + MYF(0))) == -1) goto error2; /* We only use share->data_file for writing, so we scan to the end to append */ |