Ticket #711 (closed Bug: fixed)
Database set() does not add table prefixes
| Reported by: | Nowaker | Owned by: | zombor |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2 |
| Component: | Libraries:Database | Version: | SVN HEAD |
| Keywords: | database insert table prefix | Cc: |
Description
SQL error after add(). PHP code: http://kohana.pastebin.com/m248cf7b4
Unknown column 'ggalleries_gimages.ggallery_id' in 'field list' - INSERT INTO `k2_ggalleries_gimages` (`ggalleries_gimages`.`ggallery_id`, `ggalleries_gimages`.`gimage_id`) VALUES (2, 9)
As we can see, there is table prefix after the INSERT (INSERT INTO k2_ggalleries_gimages), but in field list it lacks the prefix ((nothing_here)ggalleries_gimages.ggallery_id, (nothing_here)ggalleries_gimages.gimage_id)
Change History
Note: See
TracTickets for help on using
tickets.
