diff options
author | kostja@dipika.(none) <> | 2008-04-08 20:01:20 +0400 |
---|---|---|
committer | kostja@dipika.(none) <> | 2008-04-08 20:01:20 +0400 |
commit | d1f9376229f0a615829a436cf6004840237d1e75 (patch) | |
tree | 8ec6e9de86b024933c862dd990eb29572de10727 /include/my_global.h | |
parent | a9fff11f49d88e3fec08232b24a721cc515639fc (diff) | |
download | mariadb-git-d1f9376229f0a615829a436cf6004840237d1e75.tar.gz |
Tentative implementation of
WL#4165 Prepared statements: validation
WL#4166 Prepared statements: automatic re-prepare
Fixes
Bug#27430 Crash in subquery code when in PS and table DDL changed after PREPARE
Bug#27690 Re-execution of prepared statement after table was replaced with a view crashes
Bug#27420 A combination of PS and view operations cause error + assertion on shutdown
The basic idea of the patch is to keep track of table metadata between
prepared statement prepare and execute. If some table used in the statement
has changed, the prepared statement is re-prepared before execution.
See WL#4165 and WL#4166 contents and comments in the code for details
of the implementation.
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h index d9a8aeca881..a1118f0cb3d 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -568,7 +568,7 @@ typedef unsigned short ushort; #define CMP_NUM(a,b) (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1) #define sgn(a) (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0) -#define swap_variables(t, a, b) { register t dummy; dummy= a; a= b; b= dummy; } +#define swap_variables(t, a, b) { t dummy; dummy= a; a= b; b= dummy; } #define test(a) ((a) ? 1 : 0) #define set_if_bigger(a,b) do { if ((a) < (b)) (a)=(b); } while(0) #define set_if_smaller(a,b) do { if ((a) > (b)) (a)=(b); } while(0) |