Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Jan 22, 2025
1 parent e90ebbf commit e8e0549
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions go/vt/sqlparser/sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions go/vt/sqlparser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -3190,9 +3190,10 @@ statement_list_statement:
create_table_prefix:
CREATE temp_opt TABLE not_exists_opt table_name
{
var neTemp bool
var temp bool
authType := AuthType_CREATE
if $2.(int) != 0 {
neTemp = true
temp = true
authType = AuthType_CREATE_TEMP
}

Expand All @@ -3201,13 +3202,12 @@ create_table_prefix:
ne = true
}

authType := AuthType_CREATE
tableName := $5.(TableName)
$$ = &DDL{
Action: CreateStr,
Table: tableName,
IfNotExists: ne,
Temporary: neTemp,
Temporary: temp,
Auth: AuthInformation{
AuthType: authType,
TargetType: AuthTargetType_DatabaseIdentifiers,
Expand Down

0 comments on commit e8e0549

Please sign in to comment.