Exceptions do not work .

2002-05-29 Thread hitesh_mittal
Hi All, I am new to MySQL ( using on Solaris ) I wrote my first program to do the insertions in a table. If a row is already there then the program crashes instead of just throwing an exception. I have a catch (... ) handler also so I am sure that the Query.Execute (Insert.. ) is not

Exceptions do not work .

2002-05-29 Thread hitesh_mittal
Hi All, I am new to MySQL ( using on Solaris ) I wrote my first program to do the insertions in a table. If a row is already there then the program crashes instead of just throwing an exception. I have a catch (... ) handler also so I am sure that the Query.Execute (Insert.. ) is not

Re: Exceptions do not work .

2002-05-29 Thread Mark Matthews
hitesh_mittal@itginc.com wrote: Hi All, I am new to MySQL ( using on Solaris ) I wrote my first program to do the insertions in a table. If a row is already there then the program crashes instead of just throwing an exception. I have a catch (... ) handler also so I am sure that the

Re: Exceptions do not work .

2002-05-29 Thread hitesh_mittal
Hi I am using -mysql 3.23.59, - Solaris 2.6 the program is in C++, using gnu C 2.95.3 . The table does have primary key constraint and the program should throw an exception when I try to insert and the the row aready exists, But instead It crashes. Any suggestions ?? Thanks Hitesh

Re: Exceptions do not work .

2002-05-29 Thread Mark Matthews
hitesh_mittal@itginc.com wrote: Hi I am using -mysql 3.23.59, - Solaris 2.6 the program is in C++, using gnu C 2.95.3 . The table does have primary key constraint and the program should throw an exception when I try to insert and the the row aready exists, But instead It crashes. Any suggestions

Re: Exceptions do not work .

2002-05-29 Thread Mark Matthews
hitesh_mittal@itginc.com wrote: I am using MYSQL ++. Hitesh Then, I would suggest posting your question over on the plusplus list (see http://www.mysql.com/documentation/lists.html), as the developers for MySQL++ hang out over there. -Mark