Menu

#14 Invalid Exception message strings

open
nobody
None
5
2003-07-08
2003-07-08
No

I received error number #1065 -- 'Query was empt'. As
it appears the 'y' was cut off of the end of the
exception message, I checked the source to find that
changing the while clause in the ReadString() function
as follows would fix the problem:

while (x <= m_Buffer.Length-1 && m_Buffer[x] != 0)

The modified code will include the last character in the
conversion buffer if it has not yet encountered a null.

However, the root of the problem is that there is no
trailing null after the error message. This could be
caused by one of the following -- I am not sure which:

(a) MySQL does not return a null after error messages
(b) The null character is being truncated by accident
somewhere else in the implementation

Thanks!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.