Skip to content

SQL error when no idtype is defined before running alphabetSpec loop#140

Open
oliviercrouzet wants to merge 1 commit intoOpenEdition:masterfrom
oliviercrouzet:alphabetSpec_error
Open

SQL error when no idtype is defined before running alphabetSpec loop#140
oliviercrouzet wants to merge 1 commit intoOpenEdition:masterfrom
oliviercrouzet:alphabetSpec_error

Conversation

@oliviercrouzet
Copy link
Contributor

In this case, jointure with entities table should be included through ${table} placeholder but $context['table'] is set instead in the sql2 request. We get the following kind of request that provokes an error : SELECT COUNT(titreoeuvre) as nbresults FROM textes WHERE status > 0 AND SUBSTRING(titreoeuvre,1,1) = 'A'

In this case, jointure with entities table should be included through ${table} placeholder but
$context['table'] is set instead in the sql2 request.
We get the following kind of request that provokes an error :
SELECT COUNT(titreoeuvre) as nbresults FROM  textes WHERE status > 0  AND SUBSTRING(titreoeuvre,1,1) = 'A'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant