brunorozendo / log4jdbc-log4j2

Automatically exported from code.google.com/p/log4jdbc-log4j2
48 stars 39 forks source link

Unable to get string of query using driverspy #41

Open ishubhamjain opened 5 years ago

ishubhamjain commented 5 years ago

I am working on a project where I need to log query in Log files and add those queries to my assert statement as well

I have build prepared statements using below driver

net.sf.log4jdbc.sql.jdbcapi.DriverSpy And url

jdbc:log4jdbc:sybase:Tds ........ I have search all over the Internet for the solution but didn't get anything

Can you please tell me if there any way around by which I can get query which are getting logged in log file as well as in my code

I have raise question on stack as well

https://stackoverflow.com/questions/53505711/unable-to-get-string-of-query-using-driverspy

brunorozendo commented 5 years ago

are you using jtds-1.3.1.jar ? If not, then update.

ishubhamjain commented 5 years ago

@brunorozendo - I have found 1.3.1 jars are latest ... I have publish the mvn link over stack .. sending the message from mobile so kindly refer same

brunorozendo commented 5 years ago

@ishubhamjain the jtds-1.3.1.jar is the lasted. Are you using it?

ishubhamjain commented 5 years ago

@brunorozendo - Yes, I am using latest jtds-1.3.1.jar , I need that prepared statement queries in variables as well. I have update and explain the more detail in below stack question:

https://stackoverflow.com/questions/53589859/unable-to-get-string-of-query-using-driverspy

Please let me know if I am missing anything