Ad-hoc database queries
Maintained by
Tim Hunt, Mahmoud Kassaei, Hieu Vu Van
This report plugin allows Administrators to set up arbitrary database queries
to act as ad-hoc reports. Reports can be of two types, either run on demand,
or scheduled to run automatically. Other users with the right capability can
go in and see a list of queries that they have access to. Results can be viewed
on-screen or downloaded as CSV.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
This is a great plugin that I use weekly.
We are planning to update our Moodle to version 5.
I've seen a lot of commit on your github page.
Are you planning to update this moodle page too to reflect the changes ?
Thanks for your support
Just a super minor cosmetic issue in the category list of queries.
I updated the plugin to the latest version and I have this error, already displayed in the past
PHP deprecated: the strftime() function is deprecated in /var/www/vhosts/sedex.formazionelavoratori.online/httpdocs/report/customsql/locallib.php at line 611
Versionephp 8.1.30
Moodle 4.5+
Just upgraded to Moodle 4.5 and noticed a cosmetic error with this plugin. Looks like Moodle use to use small little diamond arrows next to each category that could be expanded. With this upgrade, these diamonds are now black arrows. However, on this plugin the arrows are way to large and it looks terrible. If anyone is still maintaining this app, please take a look at this when you have time. thank you.
Best,
The reports get data based on the current user %%USERID%%. Most of the time the reports work fine, however if two users run the same report at the same time, it displays both users data to one of the users.
I have tested this by creating a basic SQL query then have two users access it at the same time.
This is the query used for testing:
SELECT u.firstname
FROM {user} u
WHERE u.id = %%USERID%%
This results in one of the users getting two names, and the other just getting their name.
Is there any thing I can do to prevent this, anything I am doing wrong, or is this a bug?
Is there anyway to use the same variable multiple times with one input?
Thanks.