× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Joomla 3.x - About the SQL query field type limits

8 Jahre 10 Monate her #858 von Michaël Brantus
Joomla 3.x - About the SQL query field type limits wurde erstellt von Michaël Brantus
Hello everyone !
I have a question about the SQL field type in the component creator.

I try to get a list of values and keys from a MySQL table
When I use this query in my SQL field

SELECT name, id FROM myTable ODER BY name

This query works fine with my component in Joomla 3.x


Now I need to add an empty value in my list using this query

SELECT name, id FROM myTable UNION '' as name, NULL as id ORDER BY name

This query works fine when i run it on PHPMyAdmin but now my component in Joomla 3.x does't work i only get a connexion error in my browser.

If someone have an idea to resolve this, I only want to add a blank line in my list

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

8 Jahre 10 Monate her - 8 Jahre 10 Monate her #860 von Michaël Brantus
Michaël Brantus antwortete auf Joomla 3.x - About the SQL query field type limits
I reply to myself

When i modify the SQL query with my code editor it works !

It was just a problem with the quotes converted in html quotes

&quote

Letzte Änderung: 8 Jahre 10 Monate her von Michaël Brantus.
Folgende Benutzer bedankten sich: Andres Maeso

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.496 Sekunden
Powered by Kunena Forum

Wir verwenden eigene Cookies und Cookies von Drittanbietern, um Ihr Nutzererlebnis zu verbessern und Ihnen einen optimalen Service zu bieten. Wenn Sie die Website weiter nutzen, gehen wir davon aus, dass Sie mit unserer Cookie-Politik einverstanden sind.