upper / db

Data Access Layer (DAL) for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
https://upper.io/
MIT License
3.54k stars 235 forks source link

One() does not add `LIMIT 1` automatically #616

Closed xiam closed 3 years ago

xiam commented 3 years ago

One() always returns the first result and nothing more, make sure LIMIT 1 is added automatically in this case.