mjollnir_
9430b5a322
In get logs don't join on the user table for just counting the records
2004-11-25 21:56:05 +00:00
mjollnir_
c12ab13b7f
Fixing use of UCASE and LCASE in glossary which are not postgres friendly - two new functions in datalib, db_uppercase and db_lowercase which return the database-correct functions to use
2004-11-23 22:58:35 +00:00
mjollnir_
61d5adce1e
Backported Martin D's patch to get rid of adodb debug if feedback off in execute_sql to help with trying to fix up the bad constraint in quiz module for postgres
2004-11-23 04:31:47 +00:00
mjollnir_
68d69eb096
More small sql tweaks to avoid invalid postgres sql
2004-11-23 01:58:55 +00:00
mjollnir_
d13e627af5
Fixes in datalib and backuplib for postgres invalid sql
2004-11-22 04:24:05 +00:00
mjollnir_
1e47ecd5d9
modify_database function change - if no ; in single line sql strings, add it
2004-11-22 04:10:05 +00:00
mjollnir_
461a4afe83
Bugfix for search courses in postgres
2004-11-21 22:30:22 +00:00
martinlanghoff
b55be229e9
moodle--eduforge--1.3.3--patch-159 get_courses checks to see if sort is not empty before putting it in the query + removal of redundant (and costly) SQL SELECT
2004-11-19 02:13:44 +00:00
martinlanghoff
7380fc552a
moodle--eduforge--1.3.3--patch-305 - Postgres SQL bugfix for instance_is_visible()
2004-11-18 02:37:13 +00:00
martinlanghoff
ea9d7e8815
moodle--eduforge--1.3.3--patch-222 - SQL improvements\n Better SQL performance for get_courses() and get_courses_page() calls, specially from the categories page. This gives much better performance when browsing existing courses
2004-11-18 02:31:11 +00:00
mjollnir_
0ee95ca7c3
Fixes to fix_course_sortorder() and course/category.php pages. (martinlanghoff)
...
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-160
Minor fix: moodle would crash on high number of courses when doing course creation -- should be more scalable now
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-164
Fix a bug I have introduced in fix_course_sortorder() - v2
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-210
Fixed nested transaction in fix_course_sortorder()
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-215
Performance and memory usage fixes for re-sort courses function
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-268
Major performance and correctness improvements in the functions that move courses up and down, reorder by name, and in fix_course_sortorder(). All now assume course-sortorder is unique (this is enforced at the DB)
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-332
fix_coursesortorder() bugfixes and logic simplification
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-333
courses listing enhancements: bugfix on re-ordering, keep the right page on actions
2004-11-17 06:56:46 +00:00
mjollnir_
ad16b64f1a
moodle--eduforge--1.3.3--patch-207(partial) + moodle--eduforge--1.3.3--patch-408 - added begin_sql() and commit_sql() (martinlanghoff)
2004-11-17 05:28:24 +00:00
moodler
64f689e0d0
No need for DISTINCT when getting courses any more (only one table)
2004-10-18 05:58:12 +00:00
moodler
dc9999208b
Daryl Hawes found this fix for bug 1991
2004-09-25 15:17:58 +00:00
moodler
c4b8c0c709
New versions of get_courses and get_courses_page that don't require
...
a big JOIN between 'course' and 'user_teachers'.
Normally it works fine, but on one server with big tables I saw
a terrible delay that could not be fixed with indexes or by
upgrading MySQL ...
These new versions just avoid the issue.
2004-09-22 15:44:41 +00:00
moodler
24fac39fce
Default field value for get_course_users should be '', not *
2004-09-10 04:46:26 +00:00
moodler
14b03b3507
SITEID is more flexible
2004-09-09 06:59:12 +00:00
moodler
00067b0836
Made some fixes to get_course_users to make it use particular fields passed
...
to it as before the recent changes. This was causing blowout in memory
in the logs for large sites.
http://moodle.org/mod/forum/discuss.php?d=12236
I've done light testing of this only on a small site, I'm about to test it on
some bigger sites.
2004-09-08 15:38:00 +00:00
defacer
4ea496519e
Fix for bug 1800:
...
Adding this harmless column makes the get_recent_enrolments() query legal
in Postgres. Patch submitted by Petri.
2004-08-31 12:26:04 +00:00
gustav_delius
bee864c912
Just tidying up.
2004-08-30 17:28:47 +00:00
gustav_delius
30bc2fa671
This now implements the new rule on who is a site student, see http://moodle.org/mod/forum/discuss.php?d=8452#56743
2004-08-30 16:42:32 +00:00
gustav_delius
cc4a7edf6f
course teachers are also site students. This implements the rule described in http://moodle.org/mod/forum/discuss.php?d=8452#56678 .
...
This commit is probably pointless because the rules are likely to change again soon. I won't merge it onto HEAD.
2004-08-30 08:49:01 +00:00
gustav_delius
19425053af
added constant SITEID=1
2004-08-29 14:00:49 +00:00
gustav_delius
aef7d2ef0b
replacing get_site() in add_to_log() for efficiency. Moodle 1.5 will have this done more thoroughly.
2004-08-29 12:54:39 +00:00
moodler
f4fbd4d664
Fixed some uninitialised variables bug 1830
2004-08-29 11:59:19 +00:00
gustav_delius
d5fe509f44
add_to_log now updates lastaccess if used on site. See bug 1821
2004-08-29 11:35:08 +00:00
gustav_delius
0420e8715d
removed empty bullet point
2004-08-23 20:34:52 +00:00
moodler
9b10b65bbf
Function get_group_teachers() added
2005-04-16 12:21:59 +00:00
thepurpleblob
11a052a652
Added function addslashes_object().
2005-04-11 12:29:17 +00:00
moodler
e84a246a55
FIxed a problem I wasn't seeing because I was in debug mode.
...
get_record_sql now has a second parameter that specifies when
we are expecting to take one record from many (to help with debugging)
2005-04-11 12:07:49 +00:00
thepurpleblob
8a7d9d15f2
Fixed some of the incomplete or incorrect function documentation comments.
2005-04-11 10:18:33 +00:00
moodler
5baa0ad6f2
Added update_timezone_records
2005-04-10 09:15:15 +00:00
martinlanghoff
853df85e56
Performance/footprint profiling patch complete -- is enabled by CFG->default>7 or by a few defines in your config.php.
2005-04-07 00:11:28 +00:00
mjollnir_
2eab06687a
Merged from MOODLE_14_STABLE: Fixing problem with set up of site course
2005-04-06 22:25:31 +00:00
mjollnir_
9921028a3d
Merged from MOODLE_14_STABLE: Fix for return id for insert_record - needs to be cast to an int
2005-04-03 21:04:02 +00:00
moodler
fcaff7ffcd
Updated formatting in getremoteaddr, and made add_to_log use it
2005-04-01 07:40:07 +00:00
moodler
f4cbf7f214
Just documentation / reformatting while reading the code :-)
2005-04-01 06:57:26 +00:00
martinlanghoff
455c36654f
Backed out unrelated block from last commit
2005-04-01 06:01:23 +00:00
martinlanghoff
a9a9bdba55
Merged from MOODLE_14_STABLE - insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id.
2005-04-01 05:55:10 +00:00
moodler
90d0ae4f76
DOn't reference soon-to-be-defunct deleted field
2005-03-31 08:34:27 +00:00
defacer
c2aa460fe6
Fix a notice when failing to log in.
2005-03-26 18:26:49 +00:00
martinlanghoff
f78b3c3405
Merged from MOODLE_14_STABLE - add_to_log() - fixed a postgres support bug when is set to '', and clarified the logic that decides whether to update the user_students/user_teacher records.
2005-03-23 07:07:47 +00:00
moodler
6078ba3016
Misc recent changes
2005-03-22 18:10:06 +00:00
moodler
d0d0cd9c7f
You can now specify fields to get_record
2005-03-10 14:13:26 +00:00
defacer
a0413b585d
New function for sql portability: sql_isnull().
...
NOTE: I don't know how this is supposed to be phrased in Postgres. Can
someone who does give a finger of help here? :)
2005-03-07 16:58:00 +00:00
moodler
6f2a391fbd
Just to make backups work, but we may still have problems with the new adodb
...
See bug 2663
2005-03-03 07:32:00 +00:00
moodler
c44d5d4215
Some cleaning up of user_login_string and SITE
2005-03-03 04:41:46 +00:00
moodler
2327ce8e8a
FIx for bug 2663
2005-03-02 06:33:04 +00:00
moodler
29daf3a0d1
Added some sql_functions that return the correct SQL for those few
...
niggly little differences in database brands. THis replaces a
whole lot of ugly repeated code in datalib.php
2005-02-26 09:20:31 +00:00
martinlanghoff
814748c9ea
Merged from MOODLE_14_STABLE - Fixed a bug in get_categories() when called for category '0', and some extra fixes to fix_course_sortorder()
2005-02-23 01:49:22 +00:00