Skip to content

Commit

Permalink
Fix/case sensitive mutability (#206)
Browse files Browse the repository at this point in the history
* fixed bug where mutability was checked case sensitively

* unincluded changes from other branch
  • Loading branch information
brennanjl committed Feb 26, 2024
1 parent ed2d191 commit 1eac603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/modules/datasets/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package datasets

import (
"fmt"
"strings"

engineTypes "github.com/kwilteam/kwil-db/pkg/engine/types"
"github.com/kwilteam/kwil-db/pkg/transactions"
Expand Down Expand Up @@ -135,7 +136,7 @@ func convertActionsToEngine(actions []*transactions.Action) ([]*engineTypes.Proc

func convertModifiersToEngine(mutability string, auxiliaries []string) ([]engineTypes.Modifier, error) {
mods := make([]engineTypes.Modifier, len(auxiliaries)+1)
switch mutability {
switch strings.ToUpper(mutability) {
case "UPDATE":
break
case "VIEW":
Expand Down

0 comments on commit 1eac603

Please sign in to comment.