86 |
|
|
87 |
GDebug.printMesg(5,statement) |
GDebug.printMesg(5,statement) |
88 |
|
|
89 |
cursor = self.cursor() |
cursor = self._connection.native.cursor() |
90 |
cursor.execute(statement) |
cursor.execute(statement) |
91 |
|
|
92 |
list = [] |
list = [] |
93 |
for rs in cursor.fetchall(): |
for rs in cursor.fetchall(): |
94 |
list.append(GDataObjects.Schema(attrs={'id':string.lower(rs[0]), 'name':rs[1], |
list.append(GIntrospection.Schema(attrs={'id':string.lower(rs[0]), 'name':rs[1], |
95 |
'type':rs[2]}, |
'type':rs[2]}, |
96 |
getChildSchema=self.__getFieldSchema)) |
getChildSchema=self.__getFieldSchema)) |
97 |
|
|
120 |
|
|
121 |
GDebug.printMesg(5,statement) |
GDebug.printMesg(5,statement) |
122 |
|
|
123 |
cursor = self.cursor() |
cursor = self._connection.native.cursor() |
124 |
cursor.execute(statement) |
cursor.execute(statement) |
125 |
|
|
126 |
list = [] |
list = [] |
127 |
for rs in cursor.fetchall(): |
for rs in cursor.fetchall(): |
128 |
list.append(GDataObjects.Schema(attrs={'id':string.lower(rs[0]), 'name':rs[1], |
list.append(GIntrospection.Schema(attrs={'id':string.lower(rs[0]), 'name':rs[1], |
129 |
'type':rs[2]}, |
'type':rs[2]}, |
130 |
getChildSchema=self.__getFieldSchema)) |
getChildSchema=self.__getFieldSchema)) |
131 |
|
|
146 |
|
|
147 |
schema, name, type = string.split(parent.id,'.') |
schema, name, type = string.split(parent.id,'.') |
148 |
|
|
149 |
cursor = self.cursor() |
cursor = self._connection.native.cursor() |
150 |
|
|
151 |
if type == 'a': |
if type == 'a': |
152 |
statement = "select base_tabschema, base_tabname " + \ |
statement = "select base_tabschema, base_tabname " + \ |
190 |
if rs[5] != 0: |
if rs[5] != 0: |
191 |
attrs['length'] = rs[4] |
attrs['length'] = rs[4] |
192 |
|
|
193 |
list.append(GDataObjects.Schema(attrs=attrs)) |
list.append(GIntrospection.Schema(attrs=attrs)) |
194 |
|
|
195 |
cursor.close() |
cursor.close() |
196 |
return tuple(list) |
return tuple(list) |