mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge branch 'master' into more-encompassing-number-skips
This commit is contained in:
21
samples/SQL/create_stuff.sql
Normal file
21
samples/SQL/create_stuff.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
CREATE TABLE x AS SELECT * FROM DUAL;
|
||||
|
||||
CREATE TABLE y (
|
||||
col1 NUMBER NOT NULL ,
|
||||
col2 VARCHAR2(200),
|
||||
col3 DATE,
|
||||
col4 TIMESTAMP WITH TIME ZONE NOT NULL
|
||||
);
|
||||
|
||||
|
||||
CREATE USER username IDENTIFIED BY password;
|
||||
|
||||
GRANT CONNECT, RESOURCE TO username;
|
||||
|
||||
|
||||
GRANT CREATE TYPE TO username;
|
||||
GRANT CREATE PROCEDURE TO username;
|
||||
GRANT CREATE TABLE TO username;
|
||||
GRANT CREATE VIEW TO username;
|
||||
|
||||
13
samples/SQL/drop_stuff.sql
Normal file
13
samples/SQL/drop_stuff.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
drop procedure who_called_me;
|
||||
drop package body linguist_package;
|
||||
drop package linguist_package;
|
||||
drop function functionname1;
|
||||
|
||||
drop table x;
|
||||
drop table y cascade;
|
||||
|
||||
drop type typename1;
|
||||
drop type typename2;
|
||||
|
||||
drop view viewname1;
|
||||
drop view viewname2;
|
||||
3
samples/SQL/dual.sql
Normal file
3
samples/SQL/dual.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
--this is the most basic oracle sql command
|
||||
select * from dual;
|
||||
|
||||
23
samples/SQL/hostcache_set_state.inc
Normal file
23
samples/SQL/hostcache_set_state.inc
Normal file
@@ -0,0 +1,23 @@
|
||||
# Helper for hostcache_*.test
|
||||
|
||||
# Set a known initial state for the test
|
||||
|
||||
flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
||||
# Print critical setup
|
||||
|
||||
select @@global.debug;
|
||||
select @@global.max_connect_errors;
|
||||
select @@global.max_user_connections;
|
||||
select @@global.max_connections;
|
||||
|
||||
# Make sure there are no remaining records that can change the test outcome
|
||||
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
select `User`, `Host` from mysql.`user` where `user` like '2001:%';
|
||||
select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%';
|
||||
|
||||
Reference in New Issue
Block a user