Author: reinhard Date: 2010-10-16 14:16:46 -0500 (Sat, 16 Oct 2010) New Revision: 10202
Modified: trunk/gnue-common/ trunk/gnue-common/src/datasources/drivers/sql/sqlite3/Base.py Log: Removed "collateByLocale" feature since it breaks things like "BETWEEN" for indexed fields. Property changes on: trunk/gnue-common ___________________________________________________________________ Name: bzr:revision-info - timestamp: 2010-09-29 21:08:17.924999952 +0200 committer: Reinhard Müller <reinhard.muel...@bytewise.at> properties: branch-nick: common + timestamp: 2010-10-16 21:16:02.190999985 +0200 committer: Reinhard Müller <reinhard.muel...@bytewise.at> properties: branch-nick: common Name: bzr:file-ids - src/datasources/drivers/Base/RecordSet.py 4...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:src%2Fdatasources%2Fdrivers%2FBase%2FRecordSet.py + src/datasources/drivers/sql/sqlite3/Base.py 9...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:src%2Fdatasources%2Fdrivers%2Fsql%2Fsqlite3%2FBase.py Name: bzr:revision-id:v4 - 3116 reinhard.muel...@bytewise.at-20100426083315-ccfwx2pihuvqn60z 3117 reinhard.muel...@bytewise.at-20100503114756-unpxm52de0towufo 3118 reinhard.muel...@bytewise.at-20100503115129-uvondrz5bvkqubyv 3119 reinhard.muel...@bytewise.at-20100505081835-9peco6k7a2le0mvg 3120 reinhard.muel...@bytewise.at-20100505084742-wn5vtc4a129z8g28 3121 reinhard.muel...@bytewise.at-20100505092131-m2avvsci5w6aj0rv 3122 reinhard.muel...@bytewise.at-20100519151545-pybk8q2s234vzsf2 3123 reinhard.muel...@bytewise.at-20100525101023-xs7k6pkghh9t6fc3 3124 reinhard.muel...@bytewise.at-20100525114015-rj7eb0xdheqkcuql 3125 reinhard.muel...@bytewise.at-20100525145035-j177jbvu10me4mfp 3126 reinhard.muel...@bytewise.at-20100526111738-ic0wot9z1ulg2y1a 3127 reinhard.muel...@bytewise.at-20100612121357-1nf23tuj1tveh1lv 3128 reinhard.muel...@bytewise.at-20100929190642-6pp6cwlicgt2bhhs 3129 reinhard.muel...@bytewise.at-20100929190817-bje4kkvrjrpanut1 + 3116 reinhard.muel...@bytewise.at-20100426083315-ccfwx2pihuvqn60z 3117 reinhard.muel...@bytewise.at-20100503114756-unpxm52de0towufo 3118 reinhard.muel...@bytewise.at-20100503115129-uvondrz5bvkqubyv 3119 reinhard.muel...@bytewise.at-20100505081835-9peco6k7a2le0mvg 3120 reinhard.muel...@bytewise.at-20100505084742-wn5vtc4a129z8g28 3121 reinhard.muel...@bytewise.at-20100505092131-m2avvsci5w6aj0rv 3122 reinhard.muel...@bytewise.at-20100519151545-pybk8q2s234vzsf2 3123 reinhard.muel...@bytewise.at-20100525101023-xs7k6pkghh9t6fc3 3124 reinhard.muel...@bytewise.at-20100525114015-rj7eb0xdheqkcuql 3125 reinhard.muel...@bytewise.at-20100525145035-j177jbvu10me4mfp 3126 reinhard.muel...@bytewise.at-20100526111738-ic0wot9z1ulg2y1a 3127 reinhard.muel...@bytewise.at-20100612121357-1nf23tuj1tveh1lv 3128 reinhard.muel...@bytewise.at-20100929190642-6pp6cwlicgt2bhhs 3129 reinhard.muel...@bytewise.at-20100929190817-bje4kkvrjrpanut1 3130 reinhard.muel...@bytewise.at-20101016191602-kceb6hdjytt4im93 Name: bzr:text-parents - src/datasources/drivers/Base/RecordSet.py svn-v3-single1-dHJ1bmsvZ251ZS1jb21tb24.:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:10041 + src/datasources/drivers/sql/sqlite3/Base.py reinhard.muel...@bytewise.at-20100526111738-ic0wot9z1ulg2y1a Modified: trunk/gnue-common/src/datasources/drivers/sql/sqlite3/Base.py =================================================================== --- trunk/gnue-common/src/datasources/drivers/sql/sqlite3/Base.py 2010-10-11 19:22:05 UTC (rev 10201) +++ trunk/gnue-common/src/datasources/drivers/sql/sqlite3/Base.py 2010-10-16 19:16:46 UTC (rev 10202) @@ -95,31 +95,11 @@ return ([], kwargs) - # --------------------------------------------------------------------------- - def _connect_ (self, connectData): - - DBSIG2.Connection._connect_ (self, connectData) - - # With pysqlite2 version 2.2+ we could override the default collation - # function to use the current locales' one - if hasattr (self._native, 'create_collation'): - self._native.create_collation ('BINARY', collateByLocale) - - - # ============================================================================= # The following functions should go into pysqlite2.dbapi2 ! # ============================================================================= -# ----------------------------------------------------------------------------- - -def collateByLocale (value1, value2): - - return locale.strcoll (value1, value2) - -# ----------------------------------------------------------------------------- - def convert_time (value): # Be nice to datetime values passed in and take only the timepart _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue