Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

problem xorm generate SQL stmt with WHERE when column name is SQL keyword #1324

@huanjinzi

Description

@huanjinzi

xorm生成的SQL语句:

SELECT `Id`, `Index`, `Platform` FROM `recommend` WHERE Index=? AND Platform=? LIMIT 1[1 1]

WHERE Index=? AND Platform=?

  • 正确 `Index`
  • 错误 Index,没有(`)

Index为关键字,所以SQL执行时候会有语法错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions