Re: [Maria-developers] unexpected Duplicate entry error

2013-02-18 Thread Kazuhiko Shiozaki
Hi Krisian, On 18/02/2013 15:36, Kristian Nielsen wrote: We sometimes (not always, not often but sometimes) have unexpected Duplicate entry error on the following table and with the following query : BEGIN; (some queries for other tables) DELETE FROM category WHERE uid=14026268; INSERT

Re: [Maria-developers] Using C++ features in MariaDB

2013-02-18 Thread Christian Convey
Thanks Sergei. So why is it used in some places, but not in the server code? On Mon, Feb 18, 2013 at 3:00 AM, Sergei Golubchik s...@askmonty.org wrote: Hi, Christian! On Feb 17, Christian Convey wrote: I just read in Pachev's MySQL Internals book that C++ STL and exceptions aren't allowed

Re: [Maria-developers] unexpected Duplicate entry error

2013-02-18 Thread Kazuhiko Shiozaki
On 18/02/2013 16:31, Kazuhiko Shiozaki wrote: On 18/02/2013 15:36, Kristian Nielsen wrote: We sometimes (not always, not often but sometimes) have unexpected Duplicate entry error on the following table and with the following query : BEGIN; (some queries for other tables) DELETE FROM

Re: [Maria-developers] unexpected Duplicate entry error

2013-02-18 Thread Kristian Nielsen
Kazuhiko Shiozaki kazuh...@nexedi.com writes: It's REPEATABLE-READ. And innodb_locks_unsafe_for_binlog is ON, could it be the reason ? Yes. A SELECT @@global.innodb_locks_unsafe_for_binlog; @@global.innodb_locks_unsafe_for_binlog 1 A SET SESSION TRANSACTION ISOLATION

Re: [Maria-developers] Using C++ features in MariaDB

2013-02-18 Thread Sergei Golubchik
Hi, Christian! On Feb 18, Christian Convey wrote: While we're on the topic, how does MariaDB decide which language features are mature enough to use in the software? For example, do you look at a list of supported operating systems, and for those operating systems, look at whether or not

Re: [Maria-developers] Using C++ features in MariaDB

2013-02-18 Thread Christian Convey
Hi Sergei, The reason I'm asking is that, while I'm generally cautious about new C++ features, there are some features in C++11 which I'm pretty happy about. For example, class enumerations and nullptr ( http://www.cprogramming.com/c++11/c++11-nullptr-strongly-typed-enum-class.html ). I'm

Re: [Maria-developers] Using C++ features in MariaDB

2013-02-18 Thread Sergei Golubchik
Hi, Christian! On Feb 18, Christian Convey wrote: The reason I'm asking is that, while I'm generally cautious about new C++ features, there are some features in C++11 which I'm pretty happy about. For example, class enumerations and nullptr (