Subject Re: [Firebird-Java] Re: how to insert??
Author Daniel Bertin
PreparedStatement stmt = con.prepareStatement("INSERT INTO FEATURES
(TITLE,DESCRIPTION,PRIORITY,DATECREATED,CREATEDBY,
PARENTFEATURE,IMPLEMENTESTIMATE,IMPLEMENTACTUAL,OWNER)
VALUES (?, 'Test Description final', 2,'NOW', 'me of course','', 24,
22,'Danielb');");

stmt.setString(1, "set test string");

stmt.execute();

is this what you mean by stack trace?
Exception in thread "main" java.lang.NullPointerException
at
org.firebirdsql.jdbc.FBPreparedStatement.prepareFixedStatement(FBPreparedStatement.java:702)

at
org.firebirdsql.jdbc.FBStatement.internalExecute(FBStatement.java:930)
at org.firebirdsql.jdbc.FBStatement.executeQuery(FBStatement.java:102)
at testjdbc.main(testjdbc.java:72)









At 05:42 PM 7/31/2003 +0000, you wrote:
> > the ? gives a error
> >
> > java.lang.nullPointerException"
>
>Please, post your code and exception stack trace.
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><http://rd.yahoo.com/M=259538.3625325.4914071.1261774/D=egroupweb/S=1705006764:HM/A=1695348/R=0/SIG=11u38u3s2/*http://hits.411web.com/cgi-bin/hit?page=1374-105951838331032>2a854797.jpg
>2a854814.jpg
>
>To unsubscribe from this group, send an email to:
>Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
>Your use of Yahoo! Groups is subject to the
><http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.