VLiljeb_ck
12 years agoOccasional Contributor
[Resolved] Error when using property in Sql query
I have my SoapUI project connected to a postgres database. I uses JDBC request to retrieve information from the database. When adding a property and run the sql query below I get an error message, "ERROR:org.postgressql.until.PSQLException: ERROR: operator does not exist: integer = character varying".
Property: c = 8955587
Sql Query: select * from a where b = :c
But if I type the number directly in the sql query everything works fine...
Sql Query: select * from a where b = 8955587
This is the case for some objects in the database, others works with properties. Somebody who knows what to do?
Property: c = 8955587
Sql Query: select * from a where b = :c
But if I type the number directly in the sql query everything works fine...
Sql Query: select * from a where b = 8955587
This is the case for some objects in the database, others works with properties. Somebody who knows what to do?