This Question is Answered (go to answer)

8,404 Views 6 Replies Last post: Oct 25, 2007 4:35 PM by John Kaster RSS
Bronze 5 posts since
Oct 17, 2007
Currently Being Moderated

Oct 17, 2007 12:06 PM

Support for databases that have "time" as a reserved word

 

Hi. We've created an OpenFire schema definition for Blackfish SQL so we can use our preferred database for our chat services on the CodeGear Developer Network and we've run into a minor snag.

 

 

Blackfish SQL treats "time" as a reserved word, so in order to retain that field name we've had to quote it. However, that means a) all queries need to quote the time field, which means lots of query changes, b) that the time field becomes case sensitive in the queries, and c) that we have to modify the OpenFire source code to support Blackfish SQL.

 

 

The other option, to avoid case sensitivity issues and quoting syntax, is to rename the time field to something else. This change still results in c) above.

 

 

I'm surprised to find that "time" has not been an issue with other SQL servers. We'd like to provide a schema for Blackfish SQL support, particularly because the liberal license we provide for deploying it could mean easy adoption for open source projects like OpenFire. Does anyone have suggestions for ways to support Blackfish SQL with OpenFire that minimize the impact or changes to the source? Has anyone else reported issues with "time" being a reserved word for their database backend?

 

 

Thanks for any advice you can offer.

 

 

Tags: openfire, sql, blackfish, schema, support
Gaston Dombiak Jiver 3,858 posts since
Sep 26, 2001
Currently Being Moderated
Oct 17, 2007 3:21 PM in response to: John Kaster
Re: Support for databases that have "time" as a reserved word

Hey John,

 

Welcome to Openfire! I'm certainly interested in adding Blackfish SQL support to Openfire. I haven't used Blackfish SQL before so I will need some basic information from you.

 

  1. Is there a free version of Blackfish SQL that I can download? I would like to have one for my local test environment.

  2. Where can I get the JDBC drivers?

  3. What's the format of the URL of the JDBC driver?

  4. I'm using DbVisualizer as my DB client to execute/test my SQL statements. Do you know if I can use that client with your DB? If not which db client do you recommend using?

 

time column.BTW, I filed JM-1153 for 3.4.0 and right now I'm testing the renaming of the

 

Thanks,

 

  -- Gato

Gaston Dombiak Jiver 3,858 posts since
Sep 26, 2001
Currently Being Moderated
Oct 25, 2007 2:33 PM in response to: John Kaster
Re: Support for databases that have "time" as a reserved word

Hey John,

 

We are going to release Openfire 3.4.0 next Wednesday so you will probably be able to test it with your DB in your local environment. If you want to give it a try now you can use Openfire 3.4.0 beta 2 which is available in the download section (beta section).

 

Thanks,

 

  -- Gato

Gaston Dombiak Jiver 3,858 posts since
Sep 26, 2001
Currently Being Moderated
Oct 25, 2007 2:38 PM in response to: John Kaster
Re: Support for databases that have "time" as a reserved word

Hey John,

 

Thanks for the info. If you are able to test Openfire 3.4.0 (beta2 or custom built from SVN trunk) with your database I can add Blackfish SQL in the list of supported DBs and in the setup wizard as an option. I just need to know that it works fine with Openfire 3.4.0.

 

Thanks,

 

  -- Gato

More Like This

  • Retrieving data ...

Bookmarked By (0)