mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Then check in have_udf if that variable is set. Finally use tahe variable when loading the shared library. mysql-test/include/have_udf.inc: Add check if udf_example.so(or similar) is available mysql-test/lib/mtr_misc.pl: Add funcion "mtr_file_exist" to search for files mysql-test/mysql-test-run.pl: Add checks to find the udf_example.so library mysql-test/r/udf.result: Update result mysql-test/t/disabled.def: Remove udf.test from disabled tests mysql-test/t/udf.test: Use variable UDF_EXAMPLE_LIB when looking for shared library to load mysql-test/r/have_udf_example.require: New BitKeeper file ``mysql-test/r/have_udf_example.require''
		
			
				
	
	
		
			17 lines
		
	
	
		
			387 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			387 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| #
 | |
| # Check if server has support for loading udf's
 | |
| # i.e it will support dlopen
 | |
| #
 | |
| --require r/have_udf.require
 | |
| disable_query_log;
 | |
| show variables like "have_dynamic_loading";
 | |
| enable_query_log;
 | |
| 
 | |
| #
 | |
| # Check if the variable UDF_EXAMPLE_LIB is set
 | |
| #
 | |
| --require r/have_udf_example.require
 | |
| disable_query_log;
 | |
| eval select LENGTH("$UDF_EXAMPLE_LIB") > 0 as "have_udf_example_lib";
 | |
| enable_query_log;
 |