Commit 23898809 authored by Jim Fulton's avatar Jim Fulton

Made row data attributes case-insensitive.

parent 3511f947
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
__doc__='''Class for reading RDB files __doc__='''Class for reading RDB files
$Id: RDB.py,v 1.16 1998/05/04 22:35:58 jim Exp $''' $Id: RDB.py,v 1.17 1998/07/12 15:58:57 jim Exp $'''
__version__='$Revision: 1.16 $'[11:-2] __version__='$Revision: 1.17 $'[11:-2]
import regex, regsub import regex, regsub
from string import split, strip, lower, atof, atoi, atol, find, join from string import split, strip, lower, upper, atof, atoi, atol, find, join
import DateTime import DateTime
from Missing import MV from Missing import MV
from array import array from array import array
...@@ -72,6 +72,8 @@ class DatabaseResults: ...@@ -72,6 +72,8 @@ class DatabaseResults:
if schema.has_key(name): if schema.has_key(name):
raise ValueError, 'Duplicate column name, %s' % name raise ValueError, 'Duplicate column name, %s' % name
schema[name]=i schema[name]=i
schema[lower(name)]=i
schema[upper(name)]=i
i=i+1 i=i+1
self._nv=nv=len(names) self._nv=nv=len(names)
...@@ -198,6 +200,9 @@ File=DatabaseResults ...@@ -198,6 +200,9 @@ File=DatabaseResults
############################################################################## ##############################################################################
# #
# $Log: RDB.py,v $ # $Log: RDB.py,v $
# Revision 1.17 1998/07/12 15:58:57 jim
# Made row data attributes case-insensitive.
#
# Revision 1.16 1998/05/04 22:35:58 jim # Revision 1.16 1998/05/04 22:35:58 jim
# Fixed flaw in (un)escaping logic. # Fixed flaw in (un)escaping logic.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment