Commit Graph

197 Commits

Author SHA1 Message Date
stronk7
6d5a22b208 Installer fixed, prefixes improved, moved conn settings to connect() and some more improvements. MDL-14864 2008-05-19 18:02:33 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
tjhunt
015f926d6e MDL-14726 - rcache bit wrong in set_field 2008-05-07 13:04:43 +00:00
stronk7
272ccb9702 Modify sql_concat() to support all elements being numeric. MDL-13823 ; merged from 19_STABLE 2008-04-20 21:19:38 +00:00
stronk7
05c75fcebf Fix wrong conversion from '0' to '' in oracle_diry_hack. MDL-14182 ; merged from 19_STABLE 2008-04-04 11:24:57 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
f8f1f8076f MDL-13945 prevent fatal errors in all rs_xx functions; merged from MOODLE_19_STABLE 2008-03-16 22:48:39 +00:00
skodak
600fe3b333 MDL-13944 rs_close() does not throw fatal error if rs does not exist aynmore; merged from MOODLE_19_STABLE 2008-03-16 22:08:14 +00:00
skodak
2516a42ad1 MDL-13762 some debug code and workaround for sloppy use of recordsets; merged from MOODLE_19_STABLE 2008-03-04 09:24:04 +00:00
skodak
6b7af68720 MDL-13237, MDL-13661 - fixing rcache regression, sorry :-(; merged from MOODLE_19_STABLE 2008-02-25 15:15:36 +00:00
skodak
9801a97a36 MDL-13550 deprecated primary role concept; merged from MOODLE_19_STABLE 2008-02-21 09:30:13 +00:00
skodak
61460dd631 MDL-13192 major stats cleanup patch - see tracker for more details; merged from MOODLE_19_STABLE 2008-02-16 18:33:50 +00:00
nicolasconnault
2c1bfda65e MDL-12158 Applied Matt's patch, merging from 1.9 2008-02-05 10:39:56 +00:00
skodak
a3ff2dc294 MDL-13038 update_record now works with boolean false; merged from MOODLE_19_STABLE 2008-02-04 23:53:26 +00:00
skodak
56edc4490d MDL-13237 rceche limiting through intcachemax finally implemented - this should prevent major memory leaks; merged from MOODLE_19_STABLE 2008-01-29 17:30:46 +00:00
stronk7
5042a60af4 sql_isnull() not used anymore. Deleting. MDL-12970 ; merged from 19_STABLE 2008-01-27 01:40:46 +00:00
scyrma
6a8fd52898 Small documentation fix. 2008-01-09 04:10:02 +00:00
poltawski
667a2d481e MDL-12882 - we were caching empty records which caused clone warnings
merged from MOODLE_19_STABLE
2008-01-08 20:20:36 +00:00
martinlanghoff
2e7e89a907 dmllib:rcache_set()/rcache_get() - use clone() function which we can support in PHP4 - MDL-12827 2008-01-08 04:13:32 +00:00
mjollnir_
2f13f94ccc New feature: Command line installer. Credit: Dilan Anurudda.
This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
2008-01-07 01:54:28 +00:00
martinlanghoff
944a2c938f dmllib:rcache_get()/rcache_set() clone cached records - we do not want magic references here - MDL-12827\n And calling fullclone() with the huge cost in serialize()/unserialize() is not needed. 2008-01-06 22:46:20 +00:00
nicolasconnault
7dd512670b MDL-12827 Saving a clone of the $record in the cache instead of the record itself, to avoid referencing 2008-01-04 09:23:42 +00:00
stronk7
35c1c575d4 After some more tests... apply the new preconfigure_dbconnection()
to core. MDL-12657

Merged from MOODLE_19_STABLE
2007-12-20 23:15:03 +00:00
stronk7
e5e7b2a8fe Added the sql_cast_char2int() funtion to provide cross-db
casting from char/text to integer. MDL-12574

Merged from MOODLE_19_STABLE
2007-12-13 18:02:31 +00:00
tjhunt
628f99616d MDL-12438 - followup - fix typos. Thanks to Dan Poltawski. 2007-12-05 16:50:23 +00:00
tjhunt
ade79a4768 MDL-12438 - Print a develoer debug message if you call get_records with a non-unique first column. Merged from MOODLE_19_STABLE. 2007-12-04 17:29:47 +00:00
stronk7
1e5352cb61 Adding some outer spaces to returned SQL to avoid wrong
sentences caused by concatenation.

Merged from MOODLE_19_STABLE
2007-12-03 20:44:03 +00:00
stronk7
51adead13f Adding two new functions: sql_isempty() and sql_isnotempty() to perform
SQL comparisons to empties in a cross-db way. General solution for
problems like MDL-12084

Merged from MOODLE_19_STABLE
2007-12-03 20:30:41 +00:00
moodler
da46265a8f Merged docs fix about get_recordsets usage from 1.9 stable 2007-11-27 05:59:45 +00:00
skodak
a258f25619 MDL-12131 db debug messages now quoted properly 2007-11-12 17:21:00 +00:00
nicolasconnault
ddaadc7c78 MDL-8605 More changes to upgrade and restore, and some unit tests with db and rs mock objects 2007-10-12 19:13:18 +00:00
skodak
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
skodak
a7709f02b6 MDL-11432 rs->EOF wrapper function 2007-10-10 09:21:13 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
skodak
4400acd2fb fixed yet more undefined $sqls 2007-10-09 15:11:29 +00:00
skodak
6ceb40ad9d fixed missing $sql warning 2007-10-09 13:04:33 +00:00
skodak
aa87d82cec MDL-11653 undefined rcache in /lib/dmllib.php during upgrades 2007-10-08 17:27:42 +00:00
moodler
c8bb8644c4 Don't use the 100 limit for debugging in anything lower than DEBUG_DEVELOPER mode 2007-10-03 12:04:02 +00:00
skodak
78fa15afc1 fixed typo in last commit - undefined $sql 2007-10-02 15:24:19 +00:00
martinlanghoff
ba2984bf2b dmllib: more consistent err handling for execute_sql() and others
Silent errors in execute_sql() have been causing us lots of grief.
Turns out that if you have dblogerror set, it _will_ write it to the
logs.

DMLlib wasn't consistent. Most "modern" codepaths were calling both
debugging() and the dblogerror idiom. So we make all calls to
$db->Execute() consistent.

(Some exceptions remain, mostly for hardcoded SQL, such as the SET
statements when we connect...)
2007-10-02 08:34:10 +00:00
martinlanghoff
78c3ec2fe8 Revert - dmllib: check $MCACHE->status() before using it 2007-09-20 06:45:29 +00:00
martinlanghoff
369a572502 dmllib: check $MCACHE->status() before using it 2007-09-20 06:42:57 +00:00
toyomoyo
474373aa96 MDL-11017, changed blog edit page to use modified get_item_tags() 2007-08-28 08:32:38 +00:00
nicolasconnault
33a34cd4d0 MDL-10875 Corrected bug in averaging plus a couple of typos 2007-08-20 07:29:05 +00:00
stronk7
3955fd588a Now handling of BYTEA (blobs) under PostgreSQL are working properly
(delegating to ADOdb to perform the correct escaping and so on)
2007-08-10 16:10:36 +00:00
stronk7
8207a81190 MSSQL blobs doesn't like quoted binaries. MDL-9835
Merged from MOODLE_18_STABLE
2007-08-10 00:56:41 +00:00
stronk7
88cd967851 Fixed insert/update of Oracle xLOBs. Credit goes to Rita Scholes. MDL-9835
Merged from MOODLE_18_STABLE
2007-08-09 18:17:48 +00:00
stronk7
4a8e7db55e $dataobject in insert_record() and update_record() must be objects.
Added code to detect, fix and debug array situations. Related to MDL-9751.

Merged from MOODLE_18_STABLE
2007-08-05 22:40:10 +00:00
toyomoyo
3e176d9de2 adding function get_fieldset_select() MDL-10181 2007-07-30 04:36:05 +00:00
skodak
cb5105a872 MDL-9960 more support for NULLs in db values + unittests 2007-07-29 15:20:51 +00:00