mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
modify deny variant, function, schema ,table
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
basedir
|
||||
version_compile_os
|
||||
version
|
||||
datadir
|
||||
@@ -1,5 +1,12 @@
|
||||
sp_executesql
|
||||
user_name
|
||||
db_name
|
||||
col_name
|
||||
object_id
|
||||
host_name
|
||||
is_srvrolemember
|
||||
DB_NAME
|
||||
HOST_NAME
|
||||
is_member
|
||||
opendatasource
|
||||
openrowset
|
||||
openquery
|
||||
has_dbaccess
|
||||
sp_executesql
|
||||
user_name
|
||||
@@ -1,2 +1,5 @@
|
||||
master
|
||||
sys
|
||||
sys
|
||||
sysobjects
|
||||
sysdatabases
|
||||
information_schema
|
||||
@@ -1,2 +1,4 @@
|
||||
servername
|
||||
version
|
||||
user
|
||||
system_user
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class SQLServerWallPermitFunctionTest extends TestCase {
|
||||
}
|
||||
|
||||
public void test01() throws Exception {
|
||||
Assert.assertTrue(WallUtils.isValidateSqlServer("SELECT user_name() FROM X;"));
|
||||
Assert.assertFalse(WallUtils.isValidateSqlServer("SELECT user_name() FROM X;"));
|
||||
}
|
||||
|
||||
public final void test_sp_addsrvrolemenber() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user