result_set.get_string returns non-null-terminated string

Bug #1574360 reported by Solra Bizna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mariadb++
New
Undecided
Unassigned

Bug Description

result_set.get_string returns a value from m_row directly, which is a non-null-terminated string. No apparent means is provided to get the actual length of this string (by accessing m_lengths). This function can't actually be used in its current state.

I suggest modifying get_string to return a std::string, or adding a get_length method.

Revision history for this message
arduc510 (arduc510) wrote :

me, too.

but, I found other API.

sample)

data_ref dat = result_set.get_data();
string str = dat->string();

Fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.