[Fwd: tedia2sql]

View: New views
1 Messages — Rating Filter:   Alert me  

[Fwd: tedia2sql]

by Mike Ginou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just wanted this to be recorded in the archives.

If anyone who reads this list actually has time to make these changes,
please do. Test them, report back!

-Mike

-------- Original Message --------
Subject: tedia2sql
Date: Tue, 6 Nov 2007 03:22:38 +0800
From: Beau Kissinger <mrkissinger@...>
To: mginou@..., ttiimmeelleessss@...

I found a bug in tedia2sql, and I added a line of code.

sub sqlComment($$) {
        my $commentString = shift;

        if ($opt_t eq 'db2' || $opt_t eq 'informix' || $opt_t eq 'ingres' || $opt_t
        eq 'mssql' || $opt_t eq 'mysql' || $opt_t eq 'oracle' || $opt_t eq
'postgres' || $opt_t eq 'sybase' || $opt_t eq 'innodb') {
                $commentString=~s/\n/ /g; # Process multi-line comment in Dia
                return "-- $commentString";

        } elsif ($opt_t eq 'sas') {
                return "/* $commentString */";
        }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price