Skip to content

Commit

Permalink
orm: fix the generated SQL for the "not equal" operator (#20321)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Jan 1, 2024
1 parent e333d54 commit b3eae78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vlib/orm/orm.v
Expand Up @@ -92,7 +92,9 @@ pub enum SQLDialect {

fn (kind OperationKind) to_str() string {
str := match kind {
.neq { '!=' }
// While most SQL databases support "!=" for not equal, "<>" is the standard
// operator.
.neq { '<>' }
.eq { '=' }
.gt { '>' }
.lt { '<' }
Expand Down

0 comments on commit b3eae78

Please sign in to comment.