Logo white

Peter M. Groen / knowledgetree

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 9,762
  • Compare
  • Branches 2
  • Tags 28
  • knowledgetree
  • lib
  • database
29 Mar, 2006
1 commit
  • Add a layer of indirection around array_merge. kt_array_merge will use ...
    d0b48d58
    array_merge directly on PHP4, but convert each parameter to an array
    when on PHP5.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5173 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2006-03-29 11:32:24 +0000  
    Browse Dir »

10 Mar, 2006
1 commit
  • Add DBUtil::setupAdminDatabase, for upgrades and plugins to have access ...
    298fac00
    to the database with the ability to modify the database schema.
    
    (Administrators who don't want this to work should just not supply the
    admin details in their config file.)
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5067 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2006-03-10 09:21:46 +0000  
    Browse Dir »

28 Feb, 2006
2 commits
  • Add copyright notices to those files that didn't have them. ...
    421655b8
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5027 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2006-02-28 16:53:52 +0000  
    Browse Dir »
  • Correct the copyright blocks. ...
    57954b82
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5026 c91229c3-7414-0410-bfa2-8a42b809f60b
    bshuttle authored
    2006-02-28 16:51:11 +0000  
    Browse Dir »

24 Jan, 2006
1 commit
  • Only attempt to log queries if the queryLog is available. ...
    9aa9199e
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4666 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2006-01-24 09:32:07 +0000  
    Browse Dir »

20 Jan, 2006
1 commit
  • - massive document-legact reorg by nbm. ...
    ef588f52
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4622 c91229c3-7414-0410-bfa2-8a42b809f60b
    bshuttle authored
    2006-01-20 15:37:15 +0000  
    Browse Dir »

06 Dec, 2005
2 commits
  • This file is no longer used. ...
    59317515
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4344 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-12-06 12:11:29 +0000  
    Browse Dir »
  • This file hasn't been used for quite some time... ...
    55d04389
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4343 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-12-06 12:09:03 +0000  
    Browse Dir »

30 Nov, 2005
1 commit
  • If we have no parameters in our array, return an empty string. ...
    73323115
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4263 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-11-30 11:37:23 +0000  
    Browse Dir »

04 Oct, 2005
1 commit
  • autoInsert can now optionally _not_ put in a unique ID into an insert. ...
    33ae1015
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3705 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-10-04 12:23:53 +0000  
    Browse Dir »

15 Sep, 2005
1 commit
  • Add startTransaction, rollback, and commit, and fix reference returns on ...
    eb662333
    some functions.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3587 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-09-15 09:51:25 +0000  
    Browse Dir »

21 Jul, 2005
1 commit
  • Add whereDelete, which works similarly to whereUpdate. Delete anything ...
    fbf61149
    in this table matching a where clause of the sort used in the
    autoInsert/autoUpdate/whereUpdate.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3415 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-07-21 14:49:20 +0000  
    Browse Dir »

11 Jun, 2005
1 commit
  • Import SQL commands from a file, splitting into separate SQL statements. ...
    47a2dcdc
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3352 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-06-11 21:43:26 +0000  
    Browse Dir »

06 Jun, 2005
1 commit
  • Don't set an error message for a common case - not getting results. ...
    710b7bd7
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3328 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-06-06 18:57:28 +0000  
    Browse Dir »

04 Jun, 2005
1 commit
  • Remove last vestiges of last_insert_id. ...
    407230a6
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3321 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-06-04 09:54:14 +0000  
    Browse Dir »

25 May, 2005
1 commit
  • Deal with errors that might occur with nextID function from the database. ...
    4c2953ac
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3299 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-05-25 20:53:59 +0000  
    Browse Dir »

24 May, 2005
1 commit
  • Only try assign autofree to resultsets. ...
    a9176b71
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3285 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-05-24 20:28:21 +0000  
    Browse Dir »

11 Apr, 2005
1 commit
  • Use parameterised queries here too. ...
    63ae328e
    Submitted by:	Stefano Ciancio (sciancio)
    SF Tracker:	1123057
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3246 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-04-11 16:19:48 +0000  
    Browse Dir »

17 Jan, 2005
2 commits
  • On compat queries, log query errors. ...
    94408af9
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3191 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-01-17 13:15:24 +0000  
    Browse Dir »
  • Default db parameter to lastQuery method to null, like the rest. ...
    b35c8a29
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3178 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-01-17 10:21:19 +0000  
    Browse Dir »

10 Jan, 2005
1 commit
  • Correct misnamed return variable. ...
    a8876c3f
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3162 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-01-10 10:08:29 +0000  
    Browse Dir »

05 Jan, 2005
1 commit
  • Use the query log for queries (but not errors containing queries). ...
    5598af6d
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3111 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-01-05 10:51:24 +0000  
    Browse Dir »

04 Jan, 2005
1 commit
  • Lower queries and other flow logging to DEBUG level. ...
    a9cb1c3c
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3104 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2005-01-04 11:19:58 +0000  
    Browse Dir »

23 Dec, 2004
1 commit
  • Use DBUtil::runQuery to do our query, so we can get query logging. ...
    f07b5f0c
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3086 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-23 21:55:24 +0000  
    Browse Dir »

22 Dec, 2004
1 commit
  • Add compactQuery, which turns multi-line queries into single-line ones, ...
    08707e23
    in case that's ever a problem (and to make the logs more log-like).
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3068 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-22 08:24:50 +0000  
    Browse Dir »

20 Dec, 2004
2 commits
  • Support parameterised queries in old database compatibility. ...
    4656743c
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3053 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-20 10:44:03 +0000  
    Browse Dir »
  • paramArray is useful when we have a variable-list sized IN (...) SQL ...
    b0977bca
    statement.
    
    escapeSimple allows legacy code to use the loaded database's
    escapeSimple until we can clean it up properly.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3051 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-20 09:06:35 +0000  
    Browse Dir »

15 Dec, 2004
2 commits
  • Work for non-parameterised queries too! ...
    9ca33aba
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3045 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-15 11:20:43 +0000  
    Browse Dir »
  • Turn off copious logging ...
    aa88bea5
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3044 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-15 11:20:08 +0000  
    Browse Dir »

03 Dec, 2004
2 commits
  • Add DBUtill::whereUpdate, acts like autoUpdate except you can pass your ...
    e2230aaf
    own where clause as dictionary (joined by AND)
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3040 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-03 12:48:44 +0000  
    Browse Dir »
  • Check for an error as last result in fetchRow. ...
    85f49aed
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3038 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-03 12:46:54 +0000  
    Browse Dir »

01 Dec, 2004
4 commits
  • Add autoUpdate and autoDelete as per autoInsert. ...
    01eed15c
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3031 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-01 21:22:28 +0000  
    Browse Dir »
  • Stop using deprecated call_user_method_array and use ...
    525739f1
    call_user_func_array instead.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3030 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-01 18:09:05 +0000  
    Browse Dir »
  • Set autofree on the compat database's results, as they're not explicitly ...
    f8675cde
    freed in legacy code.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3022 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-01 12:29:36 +0000  
    Browse Dir »
  • Database access utility class to reduce code repetition and complexity ...
    4036b7c2
    and make it easier to make wide-spread changes in the database area.
    
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3021 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-12-01 12:28:58 +0000  
    Browse Dir »

30 Nov, 2004
1 commit
  • DBCompat provides a phplib DB API using a PEAR::DB database object. ...
    5f18498e
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3019 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-11-30 08:57:26 +0000  
    Browse Dir »

27 Nov, 2004
3 commits
  • Remove spurious haltmsg method. ...
    e5b10791
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3014 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-11-27 16:19:38 +0000  
    Browse Dir »
  • Remove unused getLastQueryResultCount and getQueryString ...
    863df32d
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3013 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-11-27 16:17:11 +0000  
    Browse Dir »
  • Remove unused createSQLQuery and createSQLQueryWithOffset ...
    bee203c0
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3012 c91229c3-7414-0410-bfa2-8a42b809f60b
    nbm authored
    2004-11-27 16:13:52 +0000  
    Browse Dir »

23 Aug, 2004
1 commit
  • Added check for the appropriate mysql escape function name ...
    001ef3b2
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2920 c91229c3-7414-0410-bfa2-8a42b809f60b
    michaeljoseph authored
    2004-08-23 09:35:24 +0000  
    Browse Dir »