Creating a new challenge on the test server results in an SQL error
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 755
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BY `source_data`' at line 1
SELECT `d1`.`did` AS source_data, `d2`.`did` AS `source_data_labeled`, `f1`.`name` AS `target_feature` FROM `dataset` `d1`, `dataset` `d2`, `data_feature` `f1`, `data_feature` `f2` WHERE `d1`.`did` = `f1`.`did` AND `d2`.`did` = `f2`.`did` AND `f1`.`name` = "class" AND `f2`.`name` = "class" AND `f2`.`NumberOfMissingValues` = 0 AND `f1`.`data_type` IN ("nominal") AND `f2`.`data_type` IN ("nominal") AND ((`d1`.`name` = "diabetes" AND `d1`.`version` = "1") ) AND 1ORDER BY `source_data`;
Filename: core/MY_Database_Read_Model.php
Line Number: 31
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at core/MY_Database_Read_Model.php line 31 and reproduce the SQL error by creating a new challenge on the test server. Inspect how this query is assembled, then verify that the generated statement is valid MySQL and that challenge creation completes without the reported syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100