()
| 213 | |
| 214 | #[test] |
| 215 | fn scope_local() { |
| 216 | let sql = "CREATE SCHEDULE gc CRON '0 * * * *' SCOPE LOCAL AS BEGIN RETURN; END"; |
| 217 | if let NodedbStatement::Automation(AutomationStmt::CreateSchedule { scope, .. }) = |
| 218 | create(sql) |
| 219 | { |
| 220 | assert_eq!(scope, "LOCAL"); |
| 221 | } else { |
| 222 | panic!("expected CreateSchedule"); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | #[test] |
| 227 | fn with_options() { |