mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
orm: fix the generated SQL for the "not equal" operator (#20321)
This commit is contained in:
parent
e333d548f3
commit
b3eae7831e
1 changed files with 3 additions and 1 deletions
|
@ -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 { '<' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue