freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT schemamania.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] unixODBC failing to connect.
- Date: Thu, 17 Apr 2003 07:01:52 -0400
On Wed, 16 Apr 2003 19:06:11 -0400 (EDT), Brian Bruns <camber AT ais.org>
wrote:
>
> Only problem is i'll need to look at every name/value pair since i want
> to detect extraneous or mispelled key strings. i'd be very nterested in
>
> seeing the code as it should be adaptable to the task.
http://www.schemamania.org/projects/nvp/
I doubt you'll want to muck with the code, though. :( It's in C++.
You'd need nvp.cpp, nvp.h, and Makefile. print.cpp is just a simple
tester.
The right way to do validation, it seems to me, would be an enhancement to
nvp. Express all valid entries and domains in a data file (a special form
of the .ini, I guess), let nvp make the comparison for you, and then
iterate over the baddies. It would be hard for nvp to detect invalid
combinations (like "try domain login" + "TDS 5.0"), but it would be simple
to detect invalid names and values.
Adding validation and iteration to the library seems like a very good
idea. At present, there's no iteration, which is trivial to add.
Validation would be more work, but would lean on the existing constructs.
If you want to use it and don't want to deal with the C++, I'll take care
of it. OTOH, Peter mentioned the easysoft libini, too. Perhaps that
already does what you want.
Regards,
--jkl
-
[freetds] unixODBC failing to connect.,
Jeff Honey, 04/15/2003
- <Possible follow-up(s)>
- RE: [freetds] unixODBC failing to connect., Lowden, James K, 04/15/2003
- RE: [freetds] unixODBC failing to connect., Lowden, James K, 04/15/2003
- RE: [freetds] unixODBC failing to connect., Jeff Honey, 04/15/2003
-
RE: [freetds] unixODBC failing to connect.,
Jeff Honey, 04/15/2003
-
RE: [freetds] unixODBC failing to connect.,
Brian Bruns, 04/16/2003
- Re: [freetds] unixODBC failing to connect., Peter Harvey, 04/16/2003
-
RE: [freetds] unixODBC failing to connect.,
Brian Bruns, 04/16/2003
-
RE: [freetds] unixODBC failing to connect.,
Lowden, James K, 04/16/2003
-
RE: [freetds] unixODBC failing to connect.,
Brian Bruns, 04/16/2003
- Re: [freetds] unixODBC failing to connect., James K. Lowden, 04/17/2003
-
RE: [freetds] unixODBC failing to connect.,
Brian Bruns, 04/16/2003
- RE: [freetds] unixODBC failing to connect., ZIGLIO Frediano, 04/17/2003
Archive powered by MHonArc 2.6.24.