Skip to Content.
Sympa Menu

freetds - Re: [freetds] Another defncopy patch - check dbopen results

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Another defncopy patch - check dbopen results
  • Date: Fri, 17 Jun 2016 22:41:27 +0100

2016-06-16 21:20 GMT+01:00 Nem W Schlecht <nem AT emptec.com>:
> I have another defncopy patch to fix another issue. The results from
> dbopen() are just checked with an assert() call. Thus, if I type in
> the wrong database name, username, whatever, I get a core dump that I
> have to clean up from a typo on my part. What do you all think of a
> quick check/message/exit, similar to what happens with tsql?
>
> Patch attached. Just checks to see if dbproc has a value. If not,
> prints an error message and exit(1)s. Otherwise, continues on.
>
> I deal with a lot of servers and a lot of usernames/passwords, so this
> one hits me fairly often.
>
>
> --
> Nem W Schlecht
> "Perl did the magic. I just waved the wand."
>

Merged, thanks




Archive powered by MHonArc 2.6.24.

Top of Page