Skip to content

dbGetQuery() returns wrong value

1 message · Enrico Schumann

#
Quoting Christofer Bogaso <bogaso.christofer at gmail.com>:
Your query does not specify a number, but a string
(you single-quote the digits). Databases may do type conversion;
for instance, see the MySQL manual:  
https://dev.mysql.com/doc/refman/8.0/en/type-conversion.html

Since you send the query as a string anyway, there may be no need
for a "'string' within a string".

Please note that I have Cc'ed <r-sig-db at r-project.org>. Any follow-up
should probably go to that mailing list.