mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 06:31:02 +00:00
CLOUD-1456: SERVERLESS - CREATE DATABASE
statement without a units qualifier causes it to be set to 0
This commit is contained in:
parent
c619b7d94e
commit
00ad916e8e
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,10 @@ func (p *ExecutionPlanner) compileCreateDatabaseStatement(stmt *parser.CreateDat
|
|||
databaseName := strings.ToLower(parser.IdentName(stmt.Name))
|
||||
failIfExists := !stmt.IfNotExists.IsValid()
|
||||
|
||||
units := 0
|
||||
// By default, a database needs at least 1 unit for simple querying, so by
|
||||
// setting the default to 1, users can simply type `CREATE DATABASE [name]` without
|
||||
// needing to append `WITH UNITS 1;`
|
||||
units := 1
|
||||
description := ""
|
||||
|
||||
// apply database options
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue