Skip to Content.
Sympa Menu

freetds - 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: PHP+TDS crashes when converting values from MS-SQL data type 'money'. Help!
  • Date: Mon, 23 Jul 2001 12:47:43 +0400


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

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

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


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






Archive powered by MHonArc 2.6.24.

Top of Page