Wrong client_con_st.con member declaration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to use libdrizzle 2.0 on win32 with sqlite3 I found that the supplied examples doesn't work, the client segfualts because it refer to an unitilized con struct.
Studing the client example I found that the member con of client_con_st structure should be a pointer because on the example there is an attempt to delete it.
typedef struct
{
drizzle_con_st *con; <<<<< pointer
drizzle_result_st result;
drizzle_column_st column;
client_state state;
uint64_t row;
} client_con_st;
-------
for (x= 0; x < client.
{
/* This may fail if there is other initialization that fails. See docs. */
drizzle_con_st *con= drizzle_
if (con == NULL)
{
CLIENT_
}
client.
drizzle_
if (client_
wait_
}
---------------
for (x= 0; x < client.
{
drizzle_
}
Seems to be this that will work with con as a pointer:
for (x= 0; x < client.
{
drizzle_
}