Skip to Content.
Sympa Menu

freetds - Re: [freetds] truncated data from query

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <james.k.lowden AT alliancebernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] truncated data from query
  • Date: Wed, 4 Oct 2006 15:43:32 -0400

> From: robert lazarski
> Sent: Wednesday, October 04, 2006 2:45 PM
>
> On 10/4/06, Lowden, James K <james.k.lowden AT alliancebernstein.com>
> wrote:
> > > From: robert lazarski Sent: Wednesday, October 04, 2006 12:54
> > > PM jkl - could you please give me a link to your marvelous new
> > > shell script src/apps/osql´ ;-) ? The freetds-0.65.dev.20060930
> > > with unixODBC 2.2.11 I'm using didn't include it or I'm not
> > > finding it with 'locate' . I tried googling for 'osql' and
> > > found lots of info, but I'm not sure if that's what you have
> > > in mind as it seems unrelated - maybe not.
> >
> > http://freetds.cvs.sourceforge.net/*checkout*/freetds/freetds/src/apps/osql?revision=1.1
>
> Where can I file a bug report ;-)

Well, you just did. :-)

> /usr/local/etc> ./osql.sh -Snewat3 -Unewatuser3 -Pnewatpassword
> newat3 newatuser3 newatpassword
> odbc.ini and odbcinst.ini should be in /lib/ld-linux.so.2
> using "/root/.odbc.ini" found this section:
> sed: invalid option -- E

Ach, sorry, I'm wasting your time. Let's just see the TDSDUMP output. (If
you see your password in that log, you're using TDS 4.2 whether you mean to
be or not. But I doubt that's the case.)

(The NetBSD sed(1) takes a -E option that mean "use extended regular
expressions". The GNU manual doesn't define its regex syntax, but, assuming
it conforms to SuS3, it shouldn't support any -E option and should be limited
to old-fashioned "basic" regular expressions. I'll re-write osql in terms of
basic regular expressions and drop the -E option.)

Once we get your problem straightened out, I'd like to contact you off list
to help fix mine. My osql script won't be much use if it doesn't work with
GNU sed on Linux boxes. According to
http://www.gnu.org/software/sed/manual/html_mono/sed.html#SEC2, there is no
'-r' option, and your later output:

> odbc.ini and odbcinst.ini should be in /lib/ld-linux.so.2

isn't right; I'm sure "/lib/ld-linux.so.2" isn't a directory.

Thanks for the feedback.

--jkl

-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.




Archive powered by MHonArc 2.6.24.

Top of Page