|
Lines 77-83
Link Here
|
| 77 |
{ |
77 |
{ |
| 78 |
public: |
78 |
public: |
| 79 |
Private() |
79 |
Private() |
| 80 |
: fieldColumnIdentifiers(101, false/*case insens.*/) |
80 |
: fieldColumnIdentifiers(1009, false/*case insens.*/) |
| 81 |
{ |
81 |
{ |
| 82 |
droppedNewItem = 0; |
82 |
droppedNewItem = 0; |
| 83 |
slotTableAdded_enabled = true; |
83 |
slotTableAdded_enabled = true; |
|
Lines 809-815
Link Here
|
| 809 |
//2. Collect information about criterias |
809 |
//2. Collect information about criterias |
| 810 |
// --this must be top level chain of AND's |
810 |
// --this must be top level chain of AND's |
| 811 |
// --this will also show joins as: [table1.]field1 = [table2.]field2 |
811 |
// --this will also show joins as: [table1.]field1 = [table2.]field2 |
| 812 |
TQDict<KexiDB::BaseExpr> criterias(101, false); |
812 |
TQDict<KexiDB::BaseExpr> criterias(1009, false); |
| 813 |
KexiDB::BaseExpr* e = query->whereExpression(); |
813 |
KexiDB::BaseExpr* e = query->whereExpression(); |
| 814 |
KexiDB::BaseExpr* eItem = 0; |
814 |
KexiDB::BaseExpr* eItem = 0; |
| 815 |
while (e) { |
815 |
while (e) { |
|
Lines 877-883
Link Here
|
| 877 |
//3. show fields (including * and table.*) |
877 |
//3. show fields (including * and table.*) |
| 878 |
uint row_num = 0; |
878 |
uint row_num = 0; |
| 879 |
KexiDB::Field *field; |
879 |
KexiDB::Field *field; |
| 880 |
TQPtrDict<char> usedCriterias(101); // <-- used criterias will be saved here |
880 |
TQPtrDict<char> usedCriterias(1009); // <-- used criterias will be saved here |
| 881 |
// so in step 4. we will be able to add |
881 |
// so in step 4. we will be able to add |
| 882 |
// remaining invisible columns with criterias |
882 |
// remaining invisible columns with criterias |
| 883 |
for (KexiDB::Field::ListIterator it(*query->fields()); |
883 |
for (KexiDB::Field::ListIterator it(*query->fields()); |
|
Lines 1270-1276
Link Here
|
| 1270 |
const TQCString expStr |
1270 |
const TQCString expStr |
| 1271 |
= i18n("short for 'expression' word (only latin letters, please)", "expr").latin1(); |
1271 |
= i18n("short for 'expression' word (only latin letters, please)", "expr").latin1(); |
| 1272 |
//TODO: optimization: cache it? |
1272 |
//TODO: optimization: cache it? |
| 1273 |
TQAsciiDict<char> aliases(101); |
1273 |
TQAsciiDict<char> aliases(1009); |
| 1274 |
for (int r = 0; r<(int)d->sets->size(); r++) { |
1274 |
for (int r = 0; r<(int)d->sets->size(); r++) { |
| 1275 |
KoProperty::Set *set = d->sets->at(r); |
1275 |
KoProperty::Set *set = d->sets->at(r); |
| 1276 |
if (set) { |
1276 |
if (set) { |