Skip to Content.
Sympa Menu

freetds - RE: [freetds] small patches

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] small patches
  • Date: Wed, 5 Nov 2003 17:15:48 -0500

On Nov 5, 3:29pm, LowdenJK AT bernstein.com ("Lowden, James K") wrote:
-- Subject: RE: [freetds] small patches

| Thanks for the patches, Christos!

You are welcome.

| > 1. In c++ you cannot use cs_config() and typedef struct cs_config
|
| FreeTDS has been compiled by a few C++ compilers. I wonder why this never
| cropped up before.

Are you compiling with gcc and -Wall turned on?

| > 2. constify server name
|
| This raises a philosophical issue. Sybase's published description of, say,
| ct_connect doesn't specify any const parameters. Granted, that's
| old-fashioned. But we match them slavishly.
|
| Should we constify everything we can? Should there be a nonconst option in
| pursuit of --enable-sybase-compat? If we do that, should we convert all the
| stupid #defines to enums, as Bjarne intended?
|
| If it were up to me, I'd say "yes" to the above. Damn the torpedos, better
| code ahead, say I. But I'm betting others have more experience than I do
| with portability and compatibility. I'd like to hear from them first.

Sounds good.

|
| > PS: BCP writes don't work?
|
| It does:
|
| $ freebcp testdb..systypes out systypes.txt -c -S$S -U$U -P$P
|
| Starting copy...
|
| firstrow = 0 row_of_query = 29 rows written 29
| 29 rows copied.
|
| What does the "create table" statement look like for your failed trial?

I will send more info when I get some spare cycles!

christos




Archive powered by MHonArc 2.6.24.

Top of Page