La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [QF-Test] Procedure "executeSelectStatement" with sample Select Query returning error getting index [1], type [-9] [SQLCode: 0]
Hi, I am trying to call the "qfs.database.executeSelectStatement" procedure to query an Oracle Database. Here are the following input parameters: driver oracle.jdbc.driver.OracleDriver connectionString jdbc:oracle:thin:@MyServer:MyPortNum:MySID dbUser myUser dbPass **** statement select COUNTRY_NAME from MySchema.country resultGroupName throwExceptionOnDuplicateColumns false Within "Plugin" folder I put the following Oracle Driver jar: ojdbc6_g.jar I keep getting the following error message: The following error was encountered: Exception during executing statement : error getting index [1], type [-9] [SQLCode: 0] When debuging Jython code of "qfs.database.executeSelectStatement", I can see the connection is fine and the error occurs at the following line: cursor.execute(rc.lookup("statement")) Note if I modify the query to count(*) (eg select count(*) from MySchema.country) It works fine. So I can't figure out why sample query such as "select COUNTRY_NAME from MySchema.country" is not working as well? Thanks in advance for your help on this issue Gwen
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.