drizzle_escape_string takes unused parameter

Bug #1415483 reported by Marenz on 2015-01-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle Client & Protocol Library

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.

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  Edit
Everyone can see this information.

Other bug subscribers