mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-28 09:54:15 +00:00
Support USE db
(#565)
This commit is contained in:
parent
71c3ec057b
commit
a9db6ed139
4 changed files with 25 additions and 0 deletions
|
@ -138,6 +138,16 @@ fn parse_show_create() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_use() {
|
||||
assert_eq!(
|
||||
mysql_and_generic().verified_stmt("USE mydb"),
|
||||
Statement::Use {
|
||||
db_name: Ident::new("mydb")
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_create_table_auto_increment() {
|
||||
let sql = "CREATE TABLE foo (bar INT PRIMARY KEY AUTO_INCREMENT)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue