Values read from MySQL TEXT columns are not null-terminated

Description

Using prepared statements to read MySQL TEXT columns leads to following results:

  • mysql_bind.length contains the correct length of the output text.

  • mysql_bind.buffer contains the required string but is not null-terminated.

Unfortunately I could not find exact specification for this behaviour but since it differs from MySQL C Connector and handling of other string types, I suppose it could be a bug.

Environment

Centos6 64

Assignee

Georg Richter

Reporter

Alex Kiliski

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure