021fe09edb 
					 
					
						
						
							
							MXS-1275: qc_mysqlembedded, add support for qc_[get|set]_sql_mode  
						
						
						
						
					 
					
						2017-06-28 21:36:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						368ae65779 
					 
					
						
						
							
							MXS-1275: // is not an mysql comment token  
						
						
						
						
					 
					
						2017-06-28 21:36:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3084e95772 
					 
					
						
						
							
							MXS-1275: Implement qc_[get|set]_sql_mode for qc_sqlite  
						
						
						
						
					 
					
						2017-06-28 21:36:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9ae0526efb 
					 
					
						
						
							
							MXS-1275: Extend QC-API to allow setting of sql mode  
						
						... 
						
						
						
						Only API changes, implementation will follow. 
						
						
					 
					
						2017-06-28 21:36:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						94b0b082e4 
					 
					
						
						
							
							MXS-1275: Make sql_mode a property of the current context  
						
						... 
						
						
						
						The sql mode is now a property of the info object used for storing
parsing related information. It is initialized with the value of the
sql mode qc_sqlite was initialized with.
This will be further changed so that the mode can be adjusted at
runtime so that the sql mode can be the property of a session. That
is, once set it will affect all future parsing for that session. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cc0c193d2e 
					 
					
						
						
							
							MXS-1196: Run Oracle test only when built against 10.3  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d9b4013b69 
					 
					
						
						
							
							MXS-1196: Add Oracle tests  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9431aded48 
					 
					
						
						
							
							MXS-1196: Do not translate keywords that arrive first  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e9ad1ea7bb 
					 
					
						
						
							
							MXS-1196: Recognize SQL%ROWCOUNT  
						
						... 
						
						
						
						Special handling is needed as otherwise "SQL%ROWCOUNT" does not
appear as a function but as the function "%" and the fields "SQL"
and "ROWCOUNT". 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8b6fc49dc1 
					 
					
						
						
							
							MXS-1196: Turn certain keywords into ids  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						77f05b49d0 
					 
					
						
						
							
							MXS-1196: Handle top-level FOR loops  
						
						... 
						
						
						
						The content is ignored and the type is QUERY_TYPE_WRITE. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b492f09d61 
					 
					
						
						
							
							MXS-1196: Add Oracle tests  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f9eef5ee3b 
					 
					
						
						
							
							MXS-1196: Classify SHOW as QUERY_TYPE_READ  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						49c9c60c63 
					 
					
						
						
							
							MXS-1196: Parse arguments to CALL.  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dd5360d30c 
					 
					
						
						
							
							MXS-1196: Handle delimiter explicitly, ignore comments  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fd3258f7f7 
					 
					
						
						
							
							MXS-1196: Ignore mysqltest keywords unless delim is ;  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a73200ad50 
					 
					
						
						
							
							MXS-1196: Add Oracle tests  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eaf5a4152b 
					 
					
						
						
							
							MXS-1196: Handle eol-comments  
						
						... 
						
						
						
						Eol-comments need to be followed by a newline as otherwise the
rest of a test-statement will be excluded. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						332e1bbb7c 
					 
					
						
						
							
							MXS-1196: Add more Oracle tests  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						31f2b340ea 
					 
					
						
						
							
							MXS-1196: Add more Oracle tests  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						38863bd319 
					 
					
						
						
							
							MXS-1196: Handle "exit" correctly  
						
						... 
						
						
						
						"exit" is both a mysqltest and PL/SQL keyword. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						09b0c44be5 
					 
					
						
						
							
							MXS-1196: Add new Oracle test  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2a89a4de45 
					 
					
						
						
							
							MXS-1196: Handle DECLARE  
						
						... 
						
						
						
						DECLARE can also begin an anonymous block in PL/SQL. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bf54a9bf9f 
					 
					
						
						
							
							MXS-1196: Handle anonymous blocks  
						
						... 
						
						
						
						In PL/SQL BEGIN starts a block (i.e. not a transaction). Whenever we
see that, we assume it is such a block, consume all input and set the
type to QUERY_TYPE_WRITE to ensure it goes to master. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f26fb085bc 
					 
					
						
						
							
							MXS-1196: Handle "while" correctly  
						
						... 
						
						
						
						"while" is both a mysqltest and PL/SQL keyword. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b700a77da6 
					 
					
						
						
							
							MXS-1196: Add test for Oracle sequences  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						573a2c6160 
					 
					
						
						
							
							MXS-1196: Accept ".tbl.col" columns names  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9ecd5da255 
					 
					
						
						
							
							MXS-1196: Handle sequence related fields/functions  
						
						... 
						
						
						
						Both 10.3 and Oracle support sequence pseudo colums and corresponding
functions. Getting the next number in the sequence is in both cases
obtained using nextval/nextval() but the current number is in Oracle
obtained using currval/currval() and in 10.3 using lastval/lastval().
These fields/functions are now ignored, in the sense that they will
not show up in the field/function infos. However, they will cause the
type mask of the statement to contain the bit QUERY_TYPE_WRITE so that
statements accessing the sequence will always be sent to the master. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						61b265467b 
					 
					
						
						
							
							MXS-1196: Add support for DROP SEQUENCE  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6645a0581f 
					 
					
						
						
							
							MXS-1196: Add support for [SHOW] CREATE SEQUENCE  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8b4e092d26 
					 
					
						
						
							
							MXS-1196: Give same argument to both classifiers  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bea8513f9d 
					 
					
						
						
							
							MXS-1196: Amend default arguments with given  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6b93a44be1 
					 
					
						
						
							
							MXS-1196: Add PS tests  
						
						... 
						
						
						
						The names of the Oracle related tests are renamed as well to make it easier
to see what exactly fails. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						116e2cd974 
					 
					
						
						
							
							MXS-1196: Handle Oracle EXECUTE and PREPARE statements  
						
						... 
						
						
						
						- EXECUTE IMMEDIATE ...
- PREPARE stmt FROM dynamic string 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7c1afe5d2c 
					 
					
						
						
							
							MXS-1196: Not all preparable stmts can be parsed  
						
						... 
						
						
						
						But the out arguments of ...get_[field|function]_infos must
be sensible and the functions must not crash. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						66e027febd 
					 
					
						
						
							
							MXS-1196: Accept EXECUTE ... USING <INTEGER>  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						471fa01f40 
					 
					
						
						
							
							MXS-1196: A single '?' is not a user variable  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fba45fd763 
					 
					
						
						
							
							MXS-1196: Add more Oracle tests  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ee54f3ac61 
					 
					
						
						
							
							MXS-1196: Hide implicit translations  
						
						... 
						
						
						
						The embedded library, when used in Oracle mode, reports the use of
"concat" as "concat_operator_oracle" and the use of "decode" as "case. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6c334aa12c 
					 
					
						
						
							
							MXS-1196: Add Oracle test  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a5637a311c 
					 
					
						
						
							
							MXS-1196: Recognize builtin Oracle functions  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1d2ca5cde7 
					 
					
						
						
							
							MXS-1196: Translate NVL into IFNULL  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						abd12d1376 
					 
					
						
						
							
							MXS-1196: Add Oracle test  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c46f16041e 
					 
					
						
						
							
							MXS-1196: Ignore the DUAL table  
						
						... 
						
						
						
						The embedded parser ignores the DUAL table so it's better if
qc_sqlite does that as well. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						339cc6cc0c 
					 
					
						
						
							
							MXS-1196: Add Oracle tests to the test suite  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e6f8432e33 
					 
					
						
						
							
							MXS-1196: Accept :'a' as placeholder variables  
						
						... 
						
						
						
						Oracle SQL accepts statements like
  PREPARE stmt FROM 'INSERT INTO t1 VALUES (:a,:b)';
  PREPARE stmt FROM 'INSERT INTO t1 VALUES (:"a",:"b")';
That is, the variable may be surrounded by quotes. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dece33f7b5 
					 
					
						
						
							
							MXS-1196: Ignore "reset master"  
						
						... 
						
						
						
						Qc_sqlite does not parse that, so it needs to be commented out in
test files. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e80a378213 
					 
					
						
						
							
							MXS-1196: Add 'sql_mode' argument to qc_sqlite  
						
						
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						50413c5195 
					 
					
						
						
							
							MXS-1196: Add Oracle specific tests  
						
						... 
						
						
						
						Copied from .../server/mysql-test/suite/compat/oracle/t
Will be used as a baseline and edited as needed. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8c1d53192c 
					 
					
						
						
							
							MXS-1196: Handle REPLACE explicitly  
						
						... 
						
						
						
						Allowing REPLACE to implicitly decay into an identifier does not
work. 
						
						
					 
					
						2017-06-28 21:33:04 +02:00