[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Minor jisql suggestion  XML
Forum Index » Jisql
Author Message
mrider

Newbie

Joined: 10/25/2005 11:50:02
Messages: 23
Offline

I've been using jisql for a bit now, and I have a minor suggestion: Change your check for "exit" and "quit" to ignore case. It makes life slightly easier when typing all caps SQL commands.
mrider

Newbie

Joined: 10/25/2005 11:50:02
Messages: 23
Offline

Actually, I took the liberty of making that exact change, plus I added a two more minor tweaks:

1) I added the ability to specify the spacer for columns - which used to be the single char ' '. I did this because of brain-dead Windows' command line copy/paste. It seems that when a line of text ends in space, copy does not copy that space. Which makes it difficult to copy/paste into another program. This can probably be ignored most of the time.

2) I added a loop which outputs Java's column types when the -debug flag is specified.
 Filename Jisql.java [Disk] Download
 Description Modified code.
 Filesize 35 Kbytes
 Downloaded:  287 time(s)

This message was edited 1 time. Last update was at 09/07/2006 16:47:34

stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 703
Location: Superior, CO, USA
Online

Thanks! I've integrated that into current code. If you want to make more changes let me know and I'll set you up for the SVN repository.

If you could do me a favor - take a look at the code now and make sure I didn't mess anything up. I ran it through the Eclipse code formatter but it seems to still work fine.

Again, thanks for the help!

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
mrider

Newbie

Joined: 10/25/2005 11:50:02
Messages: 23
Offline

Sure - I'll take a look, although I doubt if you introduced any problems.

One thought I had was that it would be handy to be able to inject output formatters as a command argument. For example one of the tables I query has a date column. jisql always truncates the date from that table - and I've confirmed this to be a bug in Oracle's JDBC driver. It reports the length incorrectly - giving the size it would be if the numbers are totally unformatted, as opposed to having dashes ( 20060908 versus 2006-09-08 ). It would be nice to be able to specify a properties file that points to a series of objects that can be used for formatting. E.g.

java.sql.Types.DATE=my.formatters.DateFormatter

Fun stuff!!

This message was edited 2 times. Last update was at 09/08/2006 09:30:44

 
Forum Index » Jisql
Go to:   
Powered by JForum 2.1.8 © JForum Team
This site built by Scott Dunbar of Xigole Systems. © 2005-2010 - Scott Dunbar
Java and the Java Get Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.
hotjoe.com and xigole.com have no affiliation with Sun Microsystems, Inc.