You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not returning 1 if record string is starting with letter #240
I have, what I think is a very strange issue, if I run this statement from Arduino:
query[] ="SELECT RFIDTAG FROM table1 WHERE RFIDTAG='2M22321321AA'";
It works(returns 1), and if a change the first characther of the search text to any number(and also change it in the database) it works fine. But if I change the first character to a letter (and also change it in the database) it returns zero.
If I execute the statement from phpadmin, it works fine, no matter if first character is a letter or a number..., so I understand the issue must be coming from the MySQL connector.
May we see the table definition?On Oct 13, 2024, at 18:20, cholopa ***@***.***> wrote:
Helo:
I have, what I think is a very strange issue, if I run this statement from Arduino:
query[] ="SELECT RFIDTAG FROM table1 WHERE RFIDTAG='2M22321321AA'";
It works(returns 1), and if a change the first characther to any number(and also change it in the database of course) it works fine. But if I change the first character to a letter (and also change it in the database of course) it returns zero.
If I execute the statement from phpadmin, it works fine, no matter if first character is a letter or a number..., so I understand the issue must be coming from the MySQL connector.
Can anyone help me please?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Thanks for the quick replay, here you can see the defintion:
I have tried changing the column type (text, medium text..etc), all with the same result. Let me also insist in the fact, that executing the query from phpMyAdmin works fine.
I don't understand what you mean by changing the lenguage of the table.
I'm working with Mariadb. I was using MySQL_MariaDB_Generic connector and this issue arrise. I tryed to contact support for that connector, but they is no more support... So I have change to MYSQL connector, but still same issue....
Aha. Well, the issue may be that the connector is not guaranteed to work
with non-Oracle distributions of MySQL. Sorry. I will try to reproduce the
problem and get back to you.
Maybe I can find something to help you.
Ok, thanks for your support, In the meantime I think I can "bypass" the issue, artificially adding always a number (as you may have notice, I'm getting the value from a "serial number" of an RFID TAG).
Activity
ChuckBell commentedon Oct 13, 2024
cholopa commentedon Oct 14, 2024
Hi
Thanks for the quick replay, here you can see the defintion:
I have tried changing the column type (text, medium text..etc), all with the same result. Let me also insist in the fact, that executing the query from phpMyAdmin works fine.
ChuckBell commentedon Oct 15, 2024
cholopa commentedon Oct 15, 2024
I don't understand what you mean by changing the lenguage of the table.
I'm working with Mariadb. I was using MySQL_MariaDB_Generic connector and this issue arrise. I tryed to contact support for that connector, but they is no more support... So I have change to MYSQL connector, but still same issue....
ChuckBell commentedon Oct 15, 2024
cholopa commentedon Oct 16, 2024
Ok, thanks for your support, In the meantime I think I can "bypass" the issue, artificially adding always a number (as you may have notice, I'm getting the value from a "serial number" of an RFID TAG).