Re: [Openh323gk-developer] Re: MS SQL x Postgres SQL
H.323 Gatekeeper for VoIP and videconferencing
Brought to you by:
willamowius
From: Zygmuntowicz M. <m.z...@on...> - 2004-10-25 13:49:03
|
You need to override GkSQLConnection::ExecuteQuery in your sql driver, just like it is done in gksql_mysql.cxx and gksql_pgsql.cxx. 1) wait until acquired (infinite timoeut) 2) yes 3) the timeout is read from the config, like other sql settings Where did you get mysqlcon.* files? They are obsolete for some time. ----- Original Message ----- From: "bilal ghayyad" <bil...@ya...> Sent: Monday, October 25, 2004 12:16 PM > In the gksql.cxx there is the implementation for > ExecuteQuerty member function, and within it there is: > > result = ExecuteQuery (connptr, finalQueryStr, > timeout); > > So, how ExecuteQuery will call it self or there is > special ExecuteQuery for SQL will be used other than > the member function: GkSQLConnection::ExecuteQuery > (const char*, const PStringArray*, long)? > > Also the if statement: > if (!(timeout == -1 ? (m_connectionMutex.Wait(), true) > : m_connectionMutex.Wait (timeout))) > { > .... > .... > } > > 1) When timeout will be -1 and what it means? > 2) If timeout was -1, then how this will be done: > (m_connectionMutex.wait(), true)? It will run > m_connectionMutex.wait() and then will return true or > how? > 3) How time out will be determine? By SQL driver it > self or from config file or from the developpers in > the script? > > We have talked about the MSSQL and so on, so all what > I have now to do is to go for gksql_mysql.cxx and make > same it for gksql_mssql.cxx? Well, what about > mysqlcon.h and mysqlcon.cxx? Do I have to do also same > like them for mssql? > > Thanks alot. > Regards > Bilal |