Hi,

After adding a primary key to a table i cant use select with where clause 
anymore (select without working fine).
If i remove the primary the error is gone.

SELECT * FROM ALARM_VISIBILITY  where accountix=1;
> General error: "java.lang.NullPointerException"; SQL statement:
> SELECT * FROM ALARM_VISIBILITY  where accountix=1 [50000-178] HY000/50000 
> (Hilfe)
> org.h2.jdbc.JdbcSQLException: General error: 
> "java.lang.NullPointerException"; SQL statement:
> SELECT * FROM ALARM_VISIBILITY  where accountix=1 [50000-178] 
>     at 
> org.h2.message.DbException.getJdbcSQLException(DbException.java:344) 
>     at org.h2.message.DbException.get(DbException.java:167) 
>     at org.h2.message.DbException.convert(DbException.java:294) 
>     at org.h2.command.Command.executeQuery(Command.java:209) 
>     at org.h2.server.TcpServerThread.process(TcpServerThread.java:321) 
>     at org.h2.server.TcpServerThread.run(TcpServerThread.java:160) 
>     at java.lang.Thread.run(Unknown Source) 
> Caused by: java.lang.NullPointerException 
>     at org.h2.engine.SessionRemote.done(SessionRemote.java:610) 
>     at org.h2.command.CommandRemote.executeQuery(CommandRemote.java:159) 
>     at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:181) 
>     at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:160) 
>     at org.h2.server.web.WebApp.getResult(WebApp.java:1391) 
>     at org.h2.server.web.WebApp.query(WebApp.java:1064) 
>     at org.h2.server.web.WebApp$1.next(WebApp.java:1026) 
>     at org.h2.server.web.WebApp$1.next(WebApp.java:1013) 
>     at org.h2.server.web.WebThread.process(WebThread.java:168) 
>     at org.h2.server.web.WebThread.run(WebThread.java:94) 
>     at java.lang.Thread.run(Unknown Source) 


Best regards 

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to