mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	After the ChangeSet 1.1892.20.1 2005/08/24 (Bug #12562) SYSDATE() is not an alias of NOW() and is unsafe for replication. `SYSDATE()' backward compatible aliasing clashes with the idea #12562 fix. To make it safe-replicatable we have to either use RBR or to restore the pre-5.0 style. --sysdate-is-now command line flag was introduced to provide backward compatibility.
		
			
				
	
	
		
			12 lines
		
	
	
		
			297 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			297 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# BUG#15101 restore aliasing of SYSDATE to NOW in 5.0
 | 
						|
# this feature is activated via --sysdate-is-now mysqld init opt
 | 
						|
#
 | 
						|
# To test here
 | 
						|
# 1. SYSDATE() does not distiguish from NOW()
 | 
						|
# 2. SYSDATE() obeys set timestamp
 | 
						|
 | 
						|
set timestamp=1;
 | 
						|
SELECT sleep(1),NOW()-SYSDATE() as zero;
 | 
						|
# End of 5.0 tests
 |