On 27.4.2006 23:16 Fabio Gomes wrote:
Thanx, but i dont think that my query is returning null, i even tried
changing the query to "SELECT * FROM CLIENTES", but still i got the same
error.
Do you have all variables initialized? If you try to do simple code like:
connection.Open();
BeginTrans.
'select * from some_table;'
ExecuteScalar();
commit;
connection.Close();
are you getting still the error. If not, you have some bug in your code.
Try to use debugger to get the line number, where the null reference
occurrs. If you will not provide these base info, it's not good to ask
question.
IMHO this is also not about Firebird-net-provider, but about your code.
BTW I also suggest to you to use parameters, it's safer and faster than
building the whole query as string.
--
Jiri Cincura
http://www.cincura.net/
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider