Ticket #799 (new Patch)
Allow custom queries to easily use table prefix
| Reported by: | Nodren | Owned by: | zombor |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.3 |
| Component: | Libraries:Database | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
similar to how if we write a custom query, we can use ? to represent an argument, could we add something similar to represent a table prefix?
just as a suggestion, i've seen other apps accomplish this by enclosing the table in {} brackets. so if the prefix was kohana_ then the query would be written like:
select * from {table} where field = ?
and would show up like:
select * from kohana_table where field = 1
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
