drizzle_escape_string takes unused parameter

Bug #1415483 reported by Marenz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle Client & Protocol Library
New
Undecided
Unassigned

Bug Description

So, this isn't exactly a bug but it's odd and it confused me.

The function drizzle_escape_string (http://bazaar.launchpad.net/~drizzle-trunk/libdrizzle/5.2/view/head:/libdrizzle/query.cc#L60 )
takes a connection parameter `con` but it's not actually using it anywhere in the function.

Revision history for this message
Wim Lewis (wiml-omni) wrote :

My guess is that this function's signature is modeled on `mysql_real_escape_string()`, which takes a connection parameter. Mysql's version seems to change its behavior based on the connection settings (charset).

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.