By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,694 Members | 2,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,694 IT Pros & Developers. It's quick & easy.

Error string... and then some!

P: n/a
Hi (again)

I'm purposely generating an SQL error to test my aforementioned custom error
handling function, but I encounter a strange problem. The error string
generated by my forced error is:

SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters.
Expected 1., SQL state 07001 in SQLExecDirect

Which is exactly what I expect. However, even if in my function I have no
output, I still get the following line printed after the function exits:

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

I use Zend Studio and have debugged it and stepped through the function, and
immediately after the function finishes, it prints that line. I thought a
custom function was supposed to get around this?? I tried using the @ char
on the odbc_exec command that generates the error, but the same thing
happens. Am I missing something?

P.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
Jul 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.