My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 170 attachment: test_errors.txt (22.1 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
python: 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
pyodbc: 2.1.9-beta10 /home/rsyring/dev/python/pyodbc/pyodbc-repo/build/lib.linux-x86_64-2.6/pyodbc.so
odbc: 03.52
driver: libtdsodbc.so 0.82
supports ODBC version 03.00
os: Linux
unicode: Py_Unicode=4 SQLWCHAR=2
======================================================================
ERROR: test_binary_0 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_1 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_1023 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_1024 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_2047 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_2048 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_255 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_256 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_4000 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_510 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_511 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_binary_512 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 303, in t
self._test_strtype('varbinary', buffer(value), len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_datetime2 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 547, in test_datetime2
self.cursor.execute("create table t1(dt datetime2)")
ProgrammingError: ('42000', '[42000] [FreeTDS][SQL Server]Column, parameter, or variable #1: Cannot find data type datetime2. (2715) (SQLExecDirectW)')

======================================================================
ERROR: test_drivers (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 1233, in test_drivers
drivers = pyodbc.drivers()
AttributeError: 'module' object has no attribute 'drivers'

======================================================================
ERROR: test_empty_unicode (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 456, in test_empty_unicode
self.cursor.execute("insert into t1 values(?)", u"")
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_fixed_unicode (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 176, in test_fixed_unicode
self.cursor.execute("insert into t1 values(?)", u"t\xebsting")
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_geometry_null_insert (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 1159, in test_geometry_null_insert
self.cursor.execute("create table t1(n int, v geometry)")
ProgrammingError: ('42000', '[42000] [FreeTDS][SQL Server]Column, parameter, or variable #2: Cannot find data type geometry. (2715) (SQLExecDirectW)')

======================================================================
ERROR: test_large_null_binary (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 298, in test_large_null_binary
self._test_strtype('varbinary', None, 4000)
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLExecDirectW)')

======================================================================
ERROR: test_large_update_nodata (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 1208, in test_large_update_nodata
self.cursor.execute('update t1 set a=? where 1=0', (hundredkb,))
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary(max) is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: Ensure None can be used for params other than the first
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 1124, in test_none_param
self.cursor.execute("update t1 set n=?, blob=?", 2, None)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary(max) is not allowed. Use the CONVERT function to run this query. (257) (SQLPrepare)')

======================================================================
ERROR: test_null_binary (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 294, in test_null_binary
self._test_strtype('varbinary', None, 100)
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
DataError: ('22018', '[22018] [FreeTDS][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. (257) (SQLExecDirectW)')

======================================================================
ERROR: test_text_upperlatin (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 345, in test_text_upperlatin
self._test_strliketype('text', '�')
File "sqlservertests.py", line 229, in _test_strliketype
self.cursor.execute("insert into t1 values(?)", value)
ProgrammingError: ('42000', '[42000] [FreeTDS][SQL Server]The incoming tabular data stream (TDS) protocol stream is incorrect. The stream ended unexpectedly. (4002) (SQLExecDirectW)')

======================================================================
ERROR: test_unicode_0 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_1 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_1023 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_1024 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_2047 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_2048 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_255 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_256 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_4000 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_510 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_511 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: test_unicode_512 (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 281, in t
self._test_strtype('nvarchar', value, len(value))
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
Error: ('HY004', '[HY004] [FreeTDS][SQL Server]Invalid data type (0) (SQLBindParameter)')

======================================================================
ERROR: Ensure unicode_results forces Unicode
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 980, in test_unicode_results
value = othercursor.execute("select s from t1").fetchone()[0]
Error: ('HY003', '[HY003] [FreeTDS][SQL Server]Program type out of range (0) (SQLGetData)')

======================================================================
ERROR: test_unicode_upperlatin (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 287, in test_unicode_upperlatin
self._test_strtype('varchar', '�')
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
ProgrammingError: ('42000', '[42000] [FreeTDS][SQL Server]The incoming tabular data stream (TDS) protocol stream is incorrect. The stream ended unexpectedly. (4002) (SQLExecDirectW)')

======================================================================
ERROR: test_varchar_upperlatin (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 269, in test_varchar_upperlatin
self._test_strtype('varchar', '�')
File "sqlservertests.py", line 195, in _test_strtype
self.cursor.execute("insert into t1 values(?)", value)
ProgrammingError: ('42000', '[42000] [FreeTDS][SQL Server]The incoming tabular data stream (TDS) protocol stream is incorrect. The stream ended unexpectedly. (4002) (SQLExecDirectW)')

======================================================================
FAIL: test_bigint (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 577, in test_bigint
self.assertEqual(result, input)
AssertionError: -1294967296L != 3000000000

======================================================================
FAIL: test_money (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 848, in test_money
self.assertEqual(v, d)
AssertionError: 123456.78 != Decimal('123456.78')

======================================================================
FAIL: test_negative_int (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sqlservertests.py", line 570, in test_negative_int
self.assertEquals(result, value)
AssertionError: 4294967295 != -1

----------------------------------------------------------------------
Ran 166 tests in 2.515s

FAILED (failures=3, errors=37)
Powered by Google Project Hosting