Skip to content
Prev 1548 / 1559 Next

dbGetQuery() returns wrong value

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.

  
    
Message-ID: <20180731102807.Horde.iMVRHzTAmrtI4QNEuPpEoVT@webmail.your-server.de>
In-Reply-To: <CA+dpOJkAvUxA1pyvAo4iF1qFLaHp6Fj83WwNhNR6aaW8yjz8xw@mail.gmail.com>