0

i have a question. I have a function called

fn_Sell(id integer, idCreditCard integer, description varchar)

thats an exameple, is not the all function, but i want to pass NULL, in idCreditCard, the field acepts null, but when i pass null value,

it said UNKONW kind of parameter (integer, UNKONW , varchar)

i think is cause of integer is not a null type of value.... what can i do?

y use callable statement in java, and for the second parameter i pass null

2
  • You have to show us fn_Sell but offhand I'd guess you need someStatement.setNull("idCreditCard", Types.INTEGER) and you are trying someStatement.setInt(null) Commented May 28, 2013 at 17:41
  • Where are you calling the function? Java? Show us the code where you call the function. Commented May 28, 2013 at 18:39

1 Answer 1

1

I think your issue is that you are passing in String "NULL" instead of NULL value. Both are different. Check what is passed through.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.