[-]
[+]
|
Changed |
cego.changes
|
|
[-]
[+]
|
Changed |
cego.spec
^
|
|
[-]
[+]
|
Deleted |
cego-2.12.4.tar.bz2/samples/chkdb/runx
^
|
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-c=0
-while true
-do
- c=`expr $c + 1`
- echo Run $c
- ./chkclt --batchfile=xxx.sql
-done
\ No newline at end of file
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/README
^
|
@@ -4,7 +4,7 @@
----
A relational and transactional database system
- Version 2.12.4
+ Version 2.12.5
(C)opyright 2006,2007,2008,2009,2010,2011,2012 by Bjoern Lemke
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/samples/chkdb/chkclt
^
|
@@ -1,2 +1,2 @@
#!/bin/bash
-../../src/cgclt --server=localhost --port=2200 --tableset=sysmt --user=lemke/lemke $@
+../../src/cgclt --server=localhost --port=2200 --tableset=TS1 --user=lemke/lemke $@
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoAggregation.cc
^
|
@@ -93,6 +93,12 @@
return _aid;
}
+void CegoAggregation::clearAttrCache()
+{
+ if ( _pExpr )
+ _pExpr->clearAttrCache();
+}
+
CegoFieldValue& CegoAggregation::getFieldValue()
{
return _fv;
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoAggregation.h
^
|
@@ -68,6 +68,8 @@
void setAggregationId(int aid);
const int getAggregationId() const;
+
+ void clearAttrCache();
CegoAggregation* clone(bool isAttrRef = false);
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoCaseCond.cc
^
|
@@ -172,6 +172,26 @@
return refCount;
}
+void CegoCaseCond::clearAttrCache()
+{
+
+ CegoPredDesc **pPredDesc = _predList.First();
+ while ( pPredDesc )
+ {
+ (*pPredDesc)->clearAttrCache();
+ pPredDesc = _predList.Next();
+ }
+
+ CegoExpr **pExpr = _exprList.First();
+ while ( pExpr)
+ {
+ (*pExpr)->clearAttrCache();
+ pExpr = _exprList.Next();
+ }
+ if ( _elseExpr )
+ _elseExpr->clearAttrCache();
+}
+
ListT<CegoField> CegoCaseCond::getFieldList() const
{
ListT<CegoField> fl;
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoCaseCond.h
^
|
@@ -63,6 +63,8 @@
ListT<CegoAttrDesc*> getAttrRefList() const;
int evalReferences(CegoContentObject *pCO, const ListT<CegoField>& fl);
+ void clearAttrCache();
+
ListT<CegoField> getFieldList() const;
CegoField evalField() const;
CegoFieldValue evalFieldValue() const;
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoClient.cc
^
|
@@ -6,7 +6,7 @@
//
// Design and Implementation by Bjoern Lemke
//
-// (C)opyright 2000-2010 Bjoern Lemke
+// (C)opyright 2000-2012 Bjoern Lemke
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -1049,7 +1049,8 @@
cmd += attrName + Chain(" ") + attrType;
if ( attrType == Chain(XML_STRING_VALUE)
|| attrType == Chain(XML_BIGINT_VALUE)
- || attrType == Chain(XML_DECIMAL_VALUE))
+ || attrType == Chain(XML_DECIMAL_VALUE)
+ || attrType == Chain(XML_FIXED_VALUE))
cmd += Chain("(") + attrSize + Chain(")");
if ( attrDef != Chain(XML_NULL_VALUE))
cmd += Chain(" default ") + attrDef;
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoDefs.h
^
|
@@ -8,7 +8,7 @@
//
// Design and Implementation by Bjoern Lemke
//
-// (C)opyright 2000-2011 Bjoern Lemke
+// (C)opyright 2000-2012 Bjoern Lemke
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -40,7 +40,7 @@
#endif
#define CEGO_PRODUCT "Cego"
-#define CEGO_VERSION "2.12.4"
+#define CEGO_VERSION "2.12.5"
#define CEGO_COPYRIGHT "Copyright (C) 2000-2012 by Bjoern Lemke. All rights reserved"
/*******************************/
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoFactor.cc
^
|
@@ -300,7 +300,17 @@
{
// if ( _pAttrDesc )
// cout << "Clearing cache for " << _pAttrDesc->toChain() << endl;
- _flaCached = false;
+
+ if ( _pAttrDesc )
+ _flaCached = false;
+ if ( _pExpr )
+ _pExpr->clearAttrCache();
+ if ( _pFunction )
+ _pFunction->clearAttrCache();
+ if ( _pAggr )
+ _pAggr->clearAttrCache();
+ if ( _pCaseCond )
+ _pCaseCond->clearAttrCache();
}
bool CegoFactor::getTableDesc(CegoTableDesc& td) const
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoFunction.cc
^
|
@@ -194,6 +194,16 @@
}
}
+void CegoFunction::clearAttrCache()
+{
+ CegoExpr** pExpr = _exprList.First();
+ while ( pExpr )
+ {
+ (*pExpr)->clearAttrCache();
+ pExpr = _exprList.Next();
+ }
+}
+
void CegoFunction::setCounterId(const Chain& counterId)
{
_counterId = counterId;
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoFunction.h
^
|
@@ -93,15 +93,16 @@
~CegoFunction();
+ ListT<CegoExpr*>& getExprList();
+ ListT<CegoField> getFieldList() const;
void setFieldListArray(ListT<CegoField> *fla, int size);
void setBlock(CegoProcBlock *pBlock);
const FunctionType getType() const;
void setExprList(ListT<CegoExpr*>& exprList);
- ListT<CegoExpr*>& getExprList();
- ListT<CegoField> getFieldList() const;
+ void clearAttrCache();
ListT<CegoAttrDesc*> getAttrRefList() const;
int evalReferences(CegoContentObject *pCO, const ListT<CegoField>& fl);
|
[-]
[+]
|
Changed |
cego-2.12.5.tar.bz2/src/CegoLogRecord.cc
^
|
@@ -399,6 +399,13 @@
case (CegoLogRecord::LOGREC_DELCOUNTER):
s += Chain("DELCOUNTER");
break;
+ case (CegoLogRecord::LOGREC_DELETE_COMMIT):
+ s += Chain("DELETE_COMMIT");
+ break;
+ case (CegoLogRecord::LOGREC_UPDATE_COMMIT):
+ s += Chain("UPDATE_COMMIT");
+ break;
+
}
s += Chain(",") + Chain(_dataLen);
|