Re: OSX 10.7.3 broke my TDS

"Craig A. Berry" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Feb 17, 2012, at 10:55 AM, Frediano Ziglio wrote:

> 2012/2/15 James K. Lowden <[email protected]>:
>> [posted on behalf of Brad Hodges]
>> 
>> I Upgraded my MAC from OSX 10.7.2 to 10.7.3,  and my freetds broke
>> 
>> The Symptom is this:
>> 
>> tsql connects to my SQLServer,  but seems to completely ignore any
>> subsequent commands entered at the prompt.  Regardless of whether I
>> enter a valid command, or complete gibberish,  the command prompt
>> returns immediately without doing or saying anything.  This has
>> consequently whacked my sqlserver-adapter,  and I can no longer connect
>> to SQLServer.
>> 
>> I was using .91, worked fine on OSX 10.7.2,  then 10.7.3 broke it.
>> I rebuilt it,  tried .92, and the latest .92 build of Jan 14 2014,
>> nothing, still broken
>> 
>> I realize this is more than likely a Mac issues,  as the 10.7.3 release
>> is apparently flawed,  but just in case,  has anybody else experienced
>> this and found a workaround?
>> 
>> Brad Hodges
> 
> Strange.
> Silly question: did you issue the "go" command ??
> Are numbers counting like
> 
> 1>
> 2>
> 3>
> 
> without stopping?

I have 10.7.3 and could not reproduce the OP's problem.  I built the snapshot from 24 Jan 2012, configured with --with-tdsver=7.1 but put "auto" in freetds.conf.  make check says:

====================
1 of 34 tests failed
====================

and as far as I can tell the problem test is:

SQL text will be read from ./hang.sql
Starting /Users/craig/Downloads/freetds-0.92.dev.20120124/src/dblib/unittests/.libs/hang
About to logon
About to open
dbsqlexec should not hang.
OK: anticipated error 20003 (Adaptive Server connection timed out) arrived
dblib okay on hang.c
Starting /Users/craig/Downloads/freetds-0.92.dev.20120124/src/dblib/unittests/.libs/hang
About to logon
About to open
dbsqlexec should not hang.
FAIL: hang

tsql works fine:

% ./src/apps/tsql -Sserver -Uuser -Ppassword
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> select @@VERSION
2> go

Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (Intel X86) 
	Mar 29 2009 10:27:29 
	Copyright (c) 1988-2008 Microsoft Corporation
	Express Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3)

(1 row affected)
1> 


________________________________________
Craig A. Berry
mailto:[email protected]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.