aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
AgeCommit message (Collapse)Author
2012-01-21cleans up the boot processCash Costello
2012-01-08coding standards fixes - commentsCash Costello
2011-11-10Fixes #4071 hellekin was right - it was a bad idea to format queriescash
2011-11-05Fixes #4049 casting bool to int so it doesn't disappear in the cache keycash
2011-10-08Fixes #3936 added @access private to internal functionsCash Costello
2011-10-02Merged fixes for delayed queries from 1.7.Brett Profitt
2011-05-14Refs #2591 we were not logging inserts, updates, and deletes. Also logging ↵cash
was happening before formatting of the queries. All fixed in this commit. git-svn-id: http://code.elgg.org/elgg/trunk@9067 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-05-14made database query logging explicitly set to NOTICE levelcash
git-svn-id: http://code.elgg.org/elgg/trunk@9066 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-04-18Fixes #2046. Applied Franz' patch for sanitize_int().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@9004 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-27Fixes #2591 removing newlines in queries - thanks to Tachyoncash
git-svn-id: http://code.elgg.org/elgg/trunk@8869 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-18Fixes #1433, #2183. Upgrades are now tracked and will be run if needed ↵brettp
regardless of version. git-svn-id: http://code.elgg.org/elgg/trunk@8277 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-08Refs #2543: Core uses the new functions from previous commit.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8078 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-06fixed some minor documentation issuescash
git-svn-id: http://code.elgg.org/elgg/trunk@8050 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-23Refs #2804 #2805 pulling changes in trunk from 1.7 branchcash
git-svn-id: http://code.elgg.org/elgg/trunk@7915 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-06Refs #1242, Fixes #2775. Pulled common code between get_data() and ↵brettp
get_data_row() into elgg_query_runner(). Caching is now done in the query runner instead of spread across execute_query() and get_data*(). Namespacing cache for callback and single row request. I'm open to better names for that function. Not closing #1242 because the elgg_get_entities*() functions can still return false. git-svn-id: http://code.elgg.org/elgg/trunk@7849 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-22Refs #2673 moved changes into trunk from 1.7 branchcash
git-svn-id: http://code.elgg.org/elgg/trunk@7417 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-10Fixes #2367: With fear and trepidation, converting events/plugin hooks to ↵ewinslow
use elgg_ prefixed versions git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-03Refs #1320. Updated core to use elgg_echo()'s native string replacement.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7227 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30ripped out last remaining tentacles of old installer from core - just needs ↵cash
removal of install.php when elgg_view() is updated git-svn-id: http://code.elgg.org/elgg/trunk@7141 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-28Standardized code in all of core, not including language files, tests, or ↵brettp
core mods. git-svn-id: http://code.elgg.org/elgg/trunk@7124 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-20Refs #2474 - merged [6976] from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@7103 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-10removed function replaced by installercash
git-svn-id: http://code.elgg.org/elgg/trunk@7043 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-13Refs #2450: Really removed the @uses and @see tags.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6931 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-13Refs #2450: Removing @see and @uses. Replaced NB: with English phrases.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6930 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-09-08Refs #2450: Documentation added for database functions.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6919 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6757:6810 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-22Merged r6701:6756 from 1.7 branch into trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-05Merged 5530:5604 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5622 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-01Adding some \ns between the SQL error and the query in the database exception.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3891 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-01-10Fixes #1432: Version number is set during installation.brettp
Refs #1424: The upgrade functions now detect if no version number is saved to the db and silences all upgrade warnings and errors. This is required for all installations < this commit to upgrade correctly because of #1432. More strict regex for finding upgrade files. Upgrade mysql.sql schema with latest. git-svn-id: http://code.elgg.org/elgg/trunk@3791 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-31Closes #1424: Faulty database migrations will now halt an upgrade.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3783 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-20cleaned up logic on db query cachecash
git-svn-id: http://code.elgg.org/elgg/trunk@3773 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-12-17fixed warning due to database query cachecash
git-svn-id: http://code.elgg.org/elgg/trunk@3765 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-19Replacing a direct call to error_log() with new elgg_log().nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3564 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-16Rewriting core debug messages to be more informative.nickw
Introducing the concept of levels for Elgg debugging: notices, warnings and errors are displayed when the appropriate debugging level is enabled. An additional level of "debug" exists to differentiate from errors. git-svn-id: http://code.elgg.org/elgg/trunk@3560 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-07database.php now more closely matches coding standards.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3515 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-07Fixes #1181: UTF8 now correctly stored in database.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3514 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-31All line endings are now Unix-style.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3451 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-08-20Whoa nelly this is a big one: Removed license and copyright for files.brettp
git-svn-id: https://code.elgg.org/elgg/trunk@3427 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-06-02Removed some error messagesmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3317 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-22Refs #965: Allowing upgrades to be loaded from other locations.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3301 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-05-19Refs #1027: Introducing $CONFIG->db_disable_query_cache which allows ↵marcus
disabling of query cache for implementation in CLI mode git-svn-id: https://code.elgg.org/elgg/trunk@3296 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-04-08Added callback support to get_data_row()marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3192 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-30Closes #875: Using db linkmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@3181 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-02Corrected unnecessarily patriotic comments.ben
git-svn-id: https://code.elgg.org/elgg/trunk@3017 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-13Added lazy database connections to delay establishing the db link until ↵marcus
actually required - will allow for future lite/static content endpoints that bypass db connections and session creation. git-svn-id: https://code.elgg.org/elgg/trunk@2733 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-23Refs #706marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2611 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-07Profiling now showing queries executed before debug flag being setmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2426 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-06* Database functions optimised and centralised a bitmarcus
* Caching now caches queries which return no data * Introducing execute_delayed_query family for executing queries AFTER the page has loaded. git-svn-id: https://code.elgg.org/elgg/trunk@2414 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-05Revert use of memcache for database query cachemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2403 36083f99-b078-4883-b0ff-0f9b5a30f544