- 04 Apr, 2007 1 commit
-
-
unknown authored
In certain cases AFTER UPDATE/DELETE triggers on NDB tables that referenced subject table didn't see the results of operation which caused invocation of those triggers. In other words AFTER trigger invoked as result of update (or deletion) of particular row saw version of this row before update (or deletion). The problem occured because NDB handler in those cases postponed actual update/delete operations to be able to perform them later as one batch. This fix solves the problem by disabling this optimization for particular operation if subject table has AFTER trigger for this operation defined. To achieve this we introduce two new flags for handler::extra() method: HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH. These are called if there exists AFTER DELETE/UPDATE triggers during a statement that potentially can generate calls to delete_row()/update_row(). This includes multi_delete/multi_update statements as well as insert statements that do delete/update as part of an ON DUPLICATE statement. include/my_base.h: Added HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible. mysql-test/r/ndb_trigger.result: Bug #26242 UPDATE with subquery and triggers failing with cluster tables --- Added new test cases mysql-test/t/ndb_trigger.test: Bug #26242 UPDATE with subquery and triggers failing with cluster tables --- Added new test cases sql/ha_ndbcluster.cc: Bug #26242 UPDATE with subquery and triggers failing with cluster tables: Use HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible sql/ha_ndbcluster.h: Bug #26242 UPDATE with subquery and triggers failing with cluster tables: Added member variables for handling of HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible sql/mysql_priv.h: Added new method prepare_triggers_for_insert_stmt to check if batching of delete/update must be disallowed. sql/sql_delete.cc: Use HA_EXTRA_DELETE_CANNOT_BATCH to inform handler when batching of delete is not possible sql/sql_insert.cc: Added method prepare_triggers_for_insert_stmt to check if batching of delete/update must be dissallowed. Use HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible sql/sql_load.cc: Call prepare_triggers_for_insert_stmt to check if batching of delete/update must be dissallowed and mark fields used by triggers for the insert statement. sql/sql_trigger.h: Added has_triggers to support what particular triggers exist on a table. sql/sql_update.cc: Use HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of update is not possible
-
- 09 Feb, 2007 1 commit
-
-
unknown authored
bug #26225 Engine condition pushdown doesn't work with prepare statements (ps_7ndb): ensure that query plan for prepared statement is analyzed correctly
-
- 07 Feb, 2007 2 commits
-
-
unknown authored
bug#25821 Excessive partition pruning for multi-range index scan in NDB API: added multi_range error checking in end_of_bound ha_ndbcluster.h: Removed stray mthod declaration sql/ha_ndbcluster.h: Removed stray mthod declaration ndb/include/ndbapi/NdbScanOperation.hpp: bug#25821 Excessive partition pruning for multi-range index scan in NDB API: added multi_range error checking in end_of_bound ndb/src/ndbapi/NdbScanOperation.cpp: bug#25821 Excessive partition pruning for multi-range index scan in NDB API: added multi_range error checking in end_of_bound sql/ha_ndbcluster.cc: bug#25821 Excessive partition pruning for multi-range index scan in NDB API: added multi_range error checking in end_of_bound
-
unknown authored
bug#25821 Excessive partition pruning for multi-range index scan in NDB API: post-review fix, added default value
-
- 06 Feb, 2007 1 commit
-
-
unknown authored
Fix for bug#25821 Excessive partition pruning for multi-range index scan in NDB API: don't set distribution key if multi_range
-
- 01 Feb, 2007 1 commit
-
-
unknown authored
Bug #25522 Update with IN syntax Clustertable + Trigger leads to mysqld segfault: moved back assignment
-
- 31 Jan, 2007 1 commit
-
-
unknown authored
Bug #25522 Update with IN syntax Clustertable + Trigger leads to mysqld segfault: in start_stmt, only change query_state if starting a new transactions, in read_multi_range_next, change query state when end is reached
-
- 08 Jan, 2007 2 commits
- 03 Jan, 2007 1 commit
-
-
unknown authored
-
- 02 Jan, 2007 1 commit
-
-
unknown authored
-
- 15 Dec, 2006 1 commit
-
-
unknown authored
-
- 14 Dec, 2006 1 commit
-
-
unknown authored
-
- 07 Dec, 2006 2 commits
- 30 Nov, 2006 3 commits
-
-
unknown authored
bug#18487 UPDATE IGNORE not supported for unique constraint violation of non-primary key: only check pk if it is updated
-
unknown authored
bug#18487 UPDATE IGNORE not supported for unique constraint violation of non-primary key: handle INSERT ... ON DUPLICATE KEY UPDATE
-
unknown authored
#18487 UPDATE IGNORE not supported for unique constraint violation of non-primary key: call peek_index_rows
-
- 29 Nov, 2006 1 commit
-
-
unknown authored
-
- 13 Nov, 2006 1 commit
-
-
unknown authored
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
-
- 07 Nov, 2006 1 commit
-
-
unknown authored
bug#21507 I can't create a unique hash index in NDB: Added possibillity to create hash only indexes with NULL valued attributes, but any NULL valued access will become full table scan with pushed condition on index attribute values
-
- 06 Nov, 2006 2 commits
- 01 Nov, 2006 1 commit
-
-
unknown authored
bug#21052 ndb/src/mgmsrv/Services.cpp: revert bug to wait for "proper" bug fix
-
- 31 Oct, 2006 2 commits
- 27 Oct, 2006 4 commits
-
-
unknown authored
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb mysql-test/r/ctype_utf8.result: Auto merged mysql-test/t/ctype_utf8.test: Auto merged sql/sql_base.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_select.cc: Auto merged sql/table.cc: Auto merged
-
unknown authored
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb ndb/src/ndbapi/NdbTransaction.cpp: Auto merged
-
unknown authored
into perch.ndb.mysql.com:/home/jonas/src/50-work ndb/src/ndbapi/NdbTransaction.cpp: Auto merged
-
unknown authored
Still leakage, make sure all unlinked operations are put back so they will be release (on failing blob operations, when AO_IgnoreError) ndb/src/ndbapi/NdbConnection.cpp: Still leakage, make sure all unlinked operations are put back so they will be release
-
- 25 Oct, 2006 9 commits
-
-
unknown authored
into orca.ndb.mysql.com:/export/home/space/pekka/ndb/version/my50-ndb
-
unknown authored
ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: remove redundant unpackBound call, missed in previous patch
-
unknown authored
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
-
unknown authored
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0 sql/handler.cc: Auto merged
-
unknown authored
Bug #21072 Duplicate key error in NDB references wrong key: Re-wrote string usage to avoid valgrind warnings
-
unknown authored
into ymer.(none):/usr/local/mysql/mysql-5.0-ndb ndb/src/common/util/SimpleProperties.cpp: Auto merged
-
unknown authored
bugs. ndb/include/util/UtilBuffer.hpp: Fix accessing memory after free(), if called with source and destination pointer the same (which should not really happen...). Fixes a problem in ndb_restore. ndb/src/common/util/SimpleProperties.cpp: Fix typo in check of maxValue.
-
unknown authored
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb ndb/src/kernel/blocks/backup/Backup.cpp: Auto merged ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Auto merged
-
unknown authored
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb sql/ha_ndbcluster.cc: Auto merged
-
- 24 Oct, 2006 1 commit
-
-
unknown authored
into orca.ndb.mysql.com:/export/home/space/pekka/ndb/version/my50-tux
-