sptk



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SPTK + MySQL != love



I think it's safe. I'd add it to SVN and test it - within 24hrs

2006/11/27, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>:

Index: src/drivers/odbc/CODBC.cpp
===================================================================
--- src/drivers/odbc/CODBC.cpp  (revision 216)
+++ src/drivers/odbc/CODBC.cpp  (working copy)
@@ -174,7 +174,7 @@
    m_Retcode=::SQLDriverConnect( m_hConnection,ParentWnd,
          (UCHAR FAR *)ConnectionString.c_str(),SQL_NTS,
          (UCHAR FAR *)buff,(short)2048,&bufflen,
-         SQL_DRIVER_COMPLETE);
+         SQL_DRIVER_NOPROMPT);

    if (!Successful(m_Retcode)) {
       string errorInfo =
errorInformation(("SQLDriverConnect("+ConnectionString+")").c_str());


Alexey Parshin wrote:
> It shouldn't show a window.. It was designed to fail if their is not
> enough
> parameters. Can you sow me that modification (_NOPROMPT) as a diff?
>

--
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com




--
Alexey Parshin,
http://www.sptk.net

List hosted by Total Knowledge

Authoright © Total Knowledge: 2005