Skip to Content.
Sympa Menu

freetds - Re: PHP+TDS crashes when converting values from MS-SQL data type 'money'. Help!

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Dmitry Komarov <dmit AT tkb.lv>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: PHP+TDS crashes when converting values from MS-SQL data type 'money'. Help!
  • Date: Mon, 23 Jul 2001 18:13:45 +0400


Hmm, the bug disappeared when compiled PHP with
"--with-sybase" option (previously it was compiled with
"--with-sybase-ct" option). What could be the problem?..

DK> Apache 1.3.20
DK> PHP 4.0.6
DK> Free-TDS 0.52 (the same bug with 0.51 and CVS)
DK> MS-SQL 6.5

DK> Everything works fine, but when FreeTDS tries to get a value from the
DK> MS-SQL "money" type field, Apache child crashes. Any ideas?
DK> Below is the last part of the FreeTDS log file.

DK> 2001-07-23 12:09:37 inside ct_describe()
DK> 2001-07-23 12:09:37 inside _ct_get_client_type()
DK> 2001-07-23 12:09:37 inside ct_describe() datafmt->datatype = 5 server
type 60
DK> 2001-07-23 12:09:37 inside ct_bind()
DK> 2001-07-23 12:09:37 inside ct_bind() item = 5 datafmt->datatype = 1
DK> ...
DK> 2001-07-23 12:09:37 processing row tokens. marker is d1
DK> 2001-07-23 12:09:37 setting column 0 to NULL
DK> 2001-07-23 12:09:37 setting column 1 to NULL
DK> 2001-07-23 12:09:37 setting column 2 to NULL
DK> 2001-07-23 12:09:37 setting column 3 to NULL
DK> 2001-07-23 12:09:37 setting column 4 to NULL
DK> 2001-07-23 12:09:37 setting column 5 to NULL
DK> 2001-07-23 12:09:37 inside _ct_bind_data()
DK> 2001-07-23 12:09:37 inside _ct_get_server_type()
DK> 2001-07-23 12:09:37 inside _ct_bind_data() converting column 0 from type
39 to type 47
DK> 2001-07-23 12:09:37 inside _ct_bind_data() setting source length for 0 =
45
DK> 2001-07-23 12:09:37 converting string dlen = 46 dtype = 47 string =
MARTINS РTAMERS
DK> 2001-07-23 12:09:37 inside _ct_bind_data() conversion done len = 15
bindfmt = 1
DK> 2001-07-23 12:09:37 inside _ct_bind_data() length binding len = 16
DK> 2001-07-23 12:09:37 inside _ct_get_server_type()
DK> 2001-07-23 12:09:37 inside _ct_bind_data() converting column 1 from type
39 to type 47
DK> 2001-07-23 12:09:37 inside _ct_bind_data() setting source length for 1 =
25
DK> 2001-07-23 12:09:37 converting string dlen = 26 dtype = 47 string =
3-666-1-43454-9
DK> 2001-07-23 12:09:37 inside _ct_bind_data() conversion done len = 15
bindfmt = 1
DK> 2001-07-23 12:09:37 inside _ct_bind_data() length binding len = 16
DK> 2001-07-23 12:09:37 inside _ct_get_server_type()
DK> 2001-07-23 12:09:37 inside _ct_bind_data() converting column 2 from type
47 to type 47
DK> 2001-07-23 12:09:37 inside _ct_bind_data() setting source length for 2 = 3
DK> 2001-07-23 12:09:37 converting string dlen = 4 dtype = 47 string = STD
DK> 2001-07-23 12:09:37 inside _ct_bind_data() conversion done len = 3
bindfmt = 1
DK> 2001-07-23 12:09:37 inside _ct_bind_data() length binding len = 4
DK> 2001-07-23 12:09:37 inside _ct_get_server_type()
DK> 2001-07-23 12:09:37 inside _ct_bind_data() converting column 3 from type
39 to type 47
DK> 2001-07-23 12:09:37 inside _ct_bind_data() setting source length for 3 =
25
DK> 2001-07-23 12:09:37 converting string dlen = 26 dtype = 47 string = PHONE
NUMBER-1
DK> 2001-07-23 12:09:37 inside _ct_bind_data() conversion done len = 14
bindfmt = 1
DK> 2001-07-23 12:09:37 inside _ct_bind_data() length binding len = 15
DK> 2001-07-23 12:09:37 inside _ct_get_server_type()
DK> 2001-07-23 12:09:37 inside _ct_bind_data() converting column 4 from type
60 to type 47
DK> 2001-07-23 12:09:37 inside _ct_bind_data() setting source length for 4 = 8
DK> 2001-07-23 12:09:37 inside _ct_bind_data() conversion done len =
136301012 bindfmt = 1
DK>
^^^^^^^^^ ???


DK> Best Regards,
DK> Dmitry Komarov mailto:dmit.tkb.lv



DK> ---
DK> You are currently subscribed to freetds as: [dmit AT tkb.lv]
DK> To unsubscribe, forward this message to $subst('Email.Unsub')



--
Best regards,
Dmitry mailto:dmit AT tkb.lv






Archive powered by MHonArc 2.6.24.

Top of Page