waliwali / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

Sanity test for ibm_db_django as described in the readme fails with Python 2.4 #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow instructions at 
http://code.google.com/p/ibm-db/wiki/ibm_db_django_README
2. python manage.py test

What is the expected output? What do you see instead?
Expected all tests to succeed.

What version of the product are you using? On what operating system?
rhel 5.5,
python 2.4.3, 
ibm_db 1.0.3, 
ibm_db_django 1.0

Please provide any additional information below.
I have applied the Python 2.4 fixes mentioned in ticket 52, 
ibm_db_dbi_py2.4_exc.diff and ibm_db_py2.4.diff.

I'm able to follow the sanity test as described here:
http://code.google.com/p/ibm-db/wiki/ibm_db_README

I'm able to connect to DB2 using db2cli.

Original issue reported on code.google.com by rannyak...@gmail.com on 16 Aug 2010 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
This is related to strptime being used, which was introduced in Python 2.5. 
There is similar bug mentioned here:

http://trac-hacks.org/ticket/3380

And the changeset of the fix:

http://trac-hacks.org/changeset/4014

I'm going to try and see If I can write up a patch for this.

Original comment by rannyak...@gmail.com on 16 Aug 2010 at 2:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Attached patch tested with Django 1.1.1, replaced datetime.strptime with 
time.strptime for Python 2.4 compatibility.

Original comment by rannyak...@gmail.com on 16 Aug 2010 at 3:26

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed with issue #62. 

Original comment by rahul.pr...@in.ibm.com on 16 Apr 2012 at 8:44