Commit Graph

33 Commits

Author SHA1 Message Date
rMalie
94a7037013 // Add DESC keyword to executeS() filter #PSFV-791
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14706 b9a71923-0436-4b27-9f14-aed3839534dd
2012-04-18 07:52:40 +00:00
rMalie
2454cd7863 // Welcome 2012²
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13573 b9a71923-0436-4b27-9f14-aed3839534dd
2012-02-23 16:33:10 +00:00
rMalie
3c79768737 [*] Classes : table prefix is no longer required in Db::getInstance()->delete() method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13396 b9a71923-0436-4b27-9f14-aed3839534dd
2012-02-16 14:54:52 +00:00
mDeflotte
bea0732df7 // Allow query from Db::excuteS, to start by an open parenthese
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13203 b9a71923-0436-4b27-9f14-aed3839534dd
2012-02-10 08:20:06 +00:00
rMalie
3fab234cd9 // Fix Db->query (property value is set)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12751 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-27 13:39:35 +00:00
rMalie
d920df5f2a // Normalize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12652 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-24 16:24:01 +00:00
rMalie
ee8532a11d // Add argument in Db->insert() and Db->update() to skip prefix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12629 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-24 08:51:23 +00:00
rMalie
a4d97911b1 [*] Classes : Db::autoExecute() call are now replaced by Db::insert() or Db::update()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12624 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-23 17:41:02 +00:00
mMarinetti
d452c4dbf8 [-] core : minor fix in Db->escape function to make it compatible to the phpdoc (2nd parameter html_ok is now optional)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12424 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-16 10:43:50 +00:00
rMalie
9d7ec6da61 // Check if at least one table with same prefix already exists in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12194 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-05 14:28:10 +00:00
rMalie
494205d52e // Fix PrestaShopException typo
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12128 b9a71923-0436-4b27-9f14-aed3839534dd
2012-01-04 13:53:19 +00:00
rMalie
f2094d7a9c // Fix access table for old mysql configurations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11733 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:05:39 +00:00
mMarinetti
cc91b4bd60 // removed useless Tools::displayError()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11547 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 19:58:01 +00:00
rMalie
eb14c43722 // Norm + improve ObjectModel
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11305 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 14:55:05 +00:00
rMalie
c5b7e15eb8 // Fix DbQuery for PHP < 5.2
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11060 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:32:59 +00:00
rMalie
f55a9e04b9 [*] Classes: Db->execute() now return always a boolean. Use Db->query() instead.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10999 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 15:41:34 +00:00
rMalie
01f0ec6a99 // Db::autoExecute() return a boolean
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10955 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:29:45 +00:00
rMalie
8d0f1e156d // Test PDO as first choice in Db class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10945 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:01:48 +00:00
lLefevre
02f5a262d9 // added list of tables and attributes in AdminRequestSqlController + change export request
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10802 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 13:24:43 +00:00
mMarinetti
2ee0842282 // check if PS_MODE_DEV is defined before checking its value
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10426 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-22 14:32:58 +00:00
rMalie
3e268db6f9 [*] Classes: CMS::getCMSPages() now select only data from cms table if id_lang is null
[*] Classes: Db::autoExecute() can now take INSERT IGNORE as third argument
[*] Classes: Tag::addTags() can now take an array of tags as argument (instead of strings separated by comas)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10033 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-10 13:45:41 +00:00
rMalie
4c6e936967 // Fix Db::executeS() now trigger Db::execute() method if the query begin with select|show|explain keyword
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10025 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-10 09:59:39 +00:00
rMalie
dd9257d008 // little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9466 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-19 14:58:33 +00:00
rMalie
8b4f3d0cf6 [+] Classes: Db::autoExecute() can now use SQL functions as values (use array('type' => 'sql', 'value' => 'SQL_FCT()')
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9463 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-19 14:35:05 +00:00
rMalie
552e264c95 [+] Classes: add PDO support if extension is activated
[*] Classes: add engine check (innodb)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9317 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-13 15:00:08 +00:00
rMalie
ca010e3a20 [-] MO: fix blocktopmenu install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9220 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-11 11:28:31 +00:00
rMalie
4d91a31031 // Add exceptions in db classes + normalize some files + split defines.inc file
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9216 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-11 10:04:23 +00:00
rMalie
ce914bd435 [*] Classes: refactoring of cache classes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9191 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-10 14:45:27 +00:00
rMalie
577221ff08 // Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9178 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-10 12:18:56 +00:00
mDeflotte
fb5c6d48f2 [*] All : Now autoExecute allow inserting multiple row
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9137 b9a71923-0436-4b27-9f14-aed3839534dd
2011-10-07 12:55:34 +00:00
rMalie
1b6d0d1be3 // Merge -> revision 8800
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8808 b9a71923-0436-4b27-9f14-aed3839534dd
2011-09-27 14:30:06 +00:00
rMalie
a3881668f0 // Fix install with Db
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8675 b9a71923-0436-4b27-9f14-aed3839534dd
2011-09-21 07:46:12 +00:00
rMalie
95233f9df5 [+] Classes: add DbQuery class in order to build queries (usefull when working with chunks of queries)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8668 b9a71923-0436-4b27-9f14-aed3839534dd
2011-09-20 16:14:19 +00:00