It is currently 7 June 2025, 17:53 Advanced search

PreparedStatement.setCommand argomento non valido

Domande e risposte su come utilizzare Instant Developer Foundation al meglio

PreparedStatement.setCommand argomento non valido

Postby smuser » 27 February 2025, 17:06

Ciao
usando il PreparedStatement ho notato questa stranezza:

Code: Select all
PreparedStatement ps = new()

ps.setCommand("update ...")  // compila

string stmt = "update ..."
ps.setCommand(stmt)  // non compila, errore: argomento non valido
ps.setCommand(ToString(stmt)) //compila


Non so se è un comportamento noto e accettato o se è un bug da sistemare.
User avatar
smuser
 
Posts: 291
Joined: 3 May 2019, 10:41
Location: Milano

Return to Tips & Tricks - Foundation

Who is online

Users browsing this forum: Google [Bot] and 40 guests