mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	 8051b7568d
			
		
	
	8051b7568d
	
	
	
		
			
			insert_id after succ. mysql_change_user() call.
See also WL 4066.
  
This bug reveals two problems:
  - the problem on the client side which was described originally;
  - the problem in protocol / the server side: connection context
    on client and server should be like after mysql_real_connect()
    and be consistent. The server however just resets character
    set variables to the global defaults.
The fix seems to be as follows:
  - extend the protocol so that the client be able to send
    character set information in COM_CHANGE_USER command;
  - change the server so that it understands client character set
    in the command;
  - change the client:
    - reset character set to the default value (which has been
      read from the configuration);
    - send character set in COM_CHANGE_USER command.
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			633 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			633 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # This test should work in embedded server after we fix mysqltest
 | |
| -- source include/not_embedded.inc
 | |
| 
 | |
| # We run with different binaries for normal and --embedded-server
 | |
| #
 | |
| # If this test fails with "command "$MYSQL_CLIENT_TEST" failed",
 | |
| # you should either run mysql_client_test separartely against a running
 | |
| # server or run mysql-test-run --debug mysql_client_test and check
 | |
| # var/log/mysql_client_test.trace
 | |
| 
 | |
| --exec echo "$MYSQL_CLIENT_TEST" > $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
 | |
| --exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
 | |
| 
 | |
| # End of 4.1 tests
 | |
| echo ok;
 | |
| 
 |