You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2003/06/01 01:37:39 UTC
cvs commit: jakarta-james/src/conf sqlResources.xml
noel 2003/05/31 16:37:39
Modified: src/conf Tag: branch_2_1_fcs sqlResources.xml
Log:
MySQL SELECT string comparisions are already case-insensitive. Using lower() in a WHERE clause effectively negates the index.
Revision Changes Path
No revision
No revision
1.16.4.3 +7 -0 jakarta-james/src/conf/sqlResources.xml
Index: sqlResources.xml
===================================================================
RCS file: /home/cvs/jakarta-james/src/conf/sqlResources.xml,v
retrieving revision 1.16.4.2
retrieving revision 1.16.4.3
diff -u -r1.16.4.2 -r1.16.4.3
--- sqlResources.xml 10 Jan 2003 20:07:25 -0000 1.16.4.2
+++ sqlResources.xml 31 May 2003 23:37:39 -0000 1.16.4.3
@@ -56,6 +56,13 @@
WHERE lower(username) = ?
</sql>
+ <sql name="selectByLowercaseName" db="mysql">
+ SELECT username, pwdHash, pwdAlgorithm, useForwarding,
+ forwardDestination, useAlias, alias
+ FROM ${table}
+ WHERE username = ?
+ </sql>
+
<!-- Statements used to insert a user into this repository. -->
<sql name="insert">INSERT INTO ${table}
(username, pwdHash, pwdAlgorithm, useForwarding, forwardDestination, useAlias, alias)
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org