mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 10:56:12 +01:00 
			
		
		
		
	 70de4075a1
			
		
	
	
	70de4075a1
	
	
	
		
			
			This is a follow-up for the initial MDEV-24486 commit. It renames the view sys.table_privileges to sys.privileges_by_table_by_level and adds some more tests displaying privilege levels GLOBAL and SCHEMA
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
 | |
| --
 | |
| -- This program is free software; you can redistribute it and/or modify
 | |
| -- it under the terms of the GNU General Public License as published by
 | |
| -- the Free Software Foundation; version 2 of the License.
 | |
| --
 | |
| -- This program is distributed in the hope that it will be useful,
 | |
| -- but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
| -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
| -- GNU General Public License for more details.
 | |
| --
 | |
| -- You should have received a copy of the GNU General Public License
 | |
| -- along with this program; if not, write to the Free Software
 | |
| -- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 | |
| 
 | |
| --
 | |
| -- View: version
 | |
| --
 | |
| -- Shows the sys schema and mysql versions
 | |
| --
 | |
| -- mysql> select * from sys.version;
 | |
| -- +-------------+---------------+
 | |
| -- | sys_version | mysql_version |
 | |
| -- +-------------+---------------+
 | |
| -- | 1.5.0       | 5.7.8-rc      |
 | |
| -- +-------------+---------------+
 | |
| -- 
 | |
| 
 | |
| CREATE OR REPLACE
 | |
|   DEFINER = 'mariadb.sys'@'localhost'
 | |
|   SQL SECURITY INVOKER 
 | |
| VIEW version (
 | |
|   sys_version,
 | |
|   mysql_version
 | |
| ) AS 
 | |
| SELECT '1.5.2' AS sys_version,
 | |
|         version() AS mysql_version;
 |