|
|||||||||||
|
Re: Query insert() Seg Faulting using SSQLS, not sure why...
From: Graham Reitz <grahamreitz(at)mac.com>
Date: Fri Aug 10 2007 - 19:59:22 EDT
If the sql_blob is there it seg faults, if not it's ok. The following code will get it to crash: (Can you see anything?) #include
using namespace std;
sql_create_6(clients, 1, 6,
unsigned int, client_id,
unsigned int, billing_id,
string, client_first_name,
string, client_middle_initial,
string, client_last_name,
sql_blob, client_photo)
void populate_client_info(clients& client_info) {
client_info.billing_id = 1;
client_info.client_first_name = "Joe";
client_info.client_middle_initial = "T";
client_info.client_last_name = "Shmo";
}
int main (int argc, char* const argv[])
Connection connection("db_name","ip_addres","user",
"pw",3306, false);
Query client_query = connection.query();
clients a_client;
populate_client_info(a_client);
client_query.insert(a_client);
return 0;
} On Aug 9, 2007, at 7:04 AM, Warren Young wrote: > Graham Reitz wrote: This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:02:56 EDT |
||||||||||
|
|||||||||||