[PYTHON DB-SIG] mSQL 2.0 and Python 1.4

Jeffrey C. Ollie jeff@ollie.clive.ia.us
Mon, 06 Jan 1997 14:29:36 -0600


-----BEGIN PGP SIGNED MESSAGE-----


I was wondering if anyone was working on getting the mSQL module to
work with mSQL 2.0 (recently released in beta) and Python 1.4. I've
gotten things to compile and some simple tests to run, but I'm sure
that some of the other changes in the mSQL API may cause problems.
I've included my patch below. It seems to work without problem with
mSQL 2.0b2, Python 1.4, IRIX 5.3, and gcc 2.7.2.1, but I haven't done
any extensive testing.

So unless someone else pipe up shortly, I'm going to go to work making
sure that there aren't any hidden problems since I need mSQL for a
project that I'm working on here.

===================================================================
RCS file: RCS/mSQLmodule.c,v
retrieving revision 1.1
diff -c -r1.1 mSQLmodule.c
*** mSQLmodule.c        1997/01/06 19:36:25     1.1
- --- mSQLmodule.c        1997/01/06 19:38:52
***************
*** 31,36 ****
- --- 31,38 ----
  
  ******************************************************
  
+ Modified by Jeffrey C. Ollie January 1997 to work with mSQL 2.0
+ 
  Modified by David Gibson December 1995
  
  - listdbs and listtables now return a list of strings
***************
*** 327,334 ****
- --- 329,341 ----
              case REAL_TYPE: type="real"; break;
              default: type="????"; break;
          }
+ #ifdef IS_UNIQUE
+       if (IS_UNIQUE(tf->flags))
+           strcpy(flags, "unique");
+ #else
          if (IS_PRI_KEY(tf->flags)) 
              strcpy(flags,"pri");
+ #endif
          else 
              flags[0]=0;
          if (IS_NOT_NULL(tf->flags)) 


[A copy of the headers and the PGP signature follow.]

Date: Mon, 06 Jan 1997 14:29:36 -0600
From: "Jeffrey C. Ollie" <jeff@ollie.clive.ia.us>
Subject: mSQL 2.0 and Python 1.4
To: python-list@cwi.nl, db-sig@python.org

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: AnySign 1.4 - A Python tool for PGP signing e-mail and news.

iQCVAwUBMtFgtpwkOQz8sbZFAQEafQP+IMiofVZcrYZ+vUDX/l6rigtuj2p+q6gZ
6MkpdXVcEQyTzgwy+/wAR6DQg5SjejLaCUULUhW0jYuKIA4ECDeY0mEpiLmTB07e
qnuOD2zhHKA1UetgBx19pR9KM+7MWd6pcsdkF9w/yfbKQf852+7mk3ZWsyAWavOt
MAw2AzFnSJc=
=l0SU
-----END PGP SIGNATURE-----
-- 
Jeffrey C. Ollie                     |            Should Work Now (TM)
Python Hacker, Mac Lover             |

=================
DB-SIG  - SIG on Tabular Databases in Python

send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
=================