1 Replies Last post: Jan 9, 2008 4:03 PM by Nate Putnam  
unlisted Bronze 9 posts since
Dec 14, 2007
Currently Being Moderated

Jan 9, 2008 2:25 PM

postgresql table schema: boolean -> smallint

config

 

  • openfire 3.4.3

  • packet filter 2.0

  • postgresql 7.4.17 (debian etch)

  • java 1.5.0_10 (debian etch)

 

symptoms

 

  • gui will allow the addition of rules, but will not display them (because they were not successfully added to the database)

  • no gui error message

  • error log exception excerpts:

 

2008.01.09 12:26:46 [org.jivesoftware.openfire.plugin.rules.DbRuleManager.addRule(DbRuleManager.jav a:249)]
org.postgresql.util.PSQLException: ERROR: column "disabled" is of type boolean but expression is of type smallint

 

 

2008.01.09 12:49:24 [org.jivesoftware.openfire.plugin.rules.DbRuleManager.addRule(DbRuleManager.jav a:249)]
org.postgresql.util.PSQLException: ERROR: column "log" is of type boolean but expression is of type smallint

 

 

i can send full exception backtraces if necessary.

 

solution

 

change the columns from boolean to smallint in postgresql.

 

schema patch attached (though i haven't actually used it as i simply dropped and readded the affected columns as smallint).

 

thanks for the packet filter plugin!

Attachments:
Nate Putnam Jiver 93 posts since
Oct 23, 2006
Currently Being Moderated
Jan 9, 2008 4:03 PM in response to: unlisted
Re: postgresql table schema: boolean -> smallint

Thanks for the fix. I'll roll it into the next version.

 

-Nate

More Like This

  • Retrieving data ...