Skip to content

Conversation

@juanpex
Copy link

@juanpex juanpex commented Oct 21, 2022

Solve "You have an error in your SQL syntax" error with empty selectColumns variable.

@mevdschee
Copy link
Owner

Hi @juanpex, thank you for your contribution. Why would it default to '*' and not to '0'? When do you run into this issue? Kind regards, Maurits

@juanpex
Copy link
Author

juanpex commented Oct 23, 2022

I'm connecting to a mysql database on remote server. The database user has some restrictions, is not managed by me.
All the tables except one has a problem "setting that columns variable". I don't know why but this is the full message error:

{ "code": 9999, "message": "SQLSTATE[42000]: Syntax error or access violation: 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 'FROM \"clientes\"' at line 1" }

@juanpex
Copy link
Author

juanpex commented Oct 23, 2022

ok, "clientes" is not a table, it's a view.
With views does not work the filter=COLUMN,eq,VAL.
Only full list view works.

@mevdschee
Copy link
Owner

I don't know why but this is the full message error:

Can you also share the full URL that is requested? Maybe I can reproduce that error.

@juanpex
Copy link
Author

juanpex commented Oct 26, 2022

I don't know why but this is the full message error:

Can you also share the full URL that is requested? Maybe I can reproduce that error.

Sorry I can't give you access to the api. That database is't my.

@mevdschee
Copy link
Owner

Sorry I can't give you access to the api. That database is't my.

I only need what put behind 'api.php', not what you put before that. Can you share that?

@juanpex
Copy link
Author

juanpex commented Oct 27, 2022

Sorry I can't give you access to the api. That database is't my.

I only need what put behind 'api.php', not what you put before that. Can you share that?

You need this?

http://domain/api.php/records/clientes

@mevdschee
Copy link
Owner

I'm sorry but I can't reproduce this issue. If you open an issue first then we can work out reproduction steps. If the issue is reproduced you can refer to this (closed) PR as a fix.

@mevdschee mevdschee closed this Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants