Hello

I have one question about error flag

This code:

dbi_conn_query(db, "select * from M");

-> I dont have a  M  table in database

printf("STATUS: %d\n", dbi_conn_error_flag(db))
STATUS: 1 (DBI_ERROR_DBD) <- this is a error, right.

dbi_conn_query(db, "select * from Media")

printf("STATUS: %d\n", dbi_conn_error_flag(db))
STATUS: 1 (DBI_ERROR_DBD) <- this is a error, why? The query is valid.
I have a Media table in database

So, if I execute some dbi_result_get_* it return a valid result. And
the dbi_conn_error_flag return 0.

My question is: After a invalid sql query, the error flag is 1,
following, after a valid query the error flag is 1. This is right?


Thanks.

PS: libdbi 0.8.2 and mysql driver.

-- 
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://joaohf.pbwiki.com
http://www.livejournal.com/users/joaohf/
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users

Reply via email to