subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1397006 - in /subversion/trunk/subversion/libsvn_wc: wc-metadata.sql wc-queries.sql
Date Thu, 11 Oct 2012 11:59:13 GMT
Author: rhuijben
Date: Thu Oct 11 11:59:12 2012
New Revision: 1397006

URL: http://svn.apache.org/viewvc?rev=1397006&view=rev
Log:
Stop us use '==' in sql statements. Standardize on the far more common '='

* subversion/libsvn_wc/wc-metadata.sql
  (STMT_UPGRADE_31_SELECT_WCROOT_NODES):

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_NOT_PRESENT_DESCENDANTS,
   STMT_SELECT_ALL_NODES): Use '=' in sql.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc-metadata.sql
    subversion/trunk/subversion/libsvn_wc/wc-queries.sql

Modified: subversion/trunk/subversion/libsvn_wc/wc-metadata.sql
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc-metadata.sql?rev=1397006&r1=1397005&r2=1397006&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc-metadata.sql (original)
+++ subversion/trunk/subversion/libsvn_wc/wc-metadata.sql Thu Oct 11 11:59:12 2012
@@ -834,7 +834,7 @@ LEFT OUTER JOIN nodes as r
 ON l.wc_id = r.wc_id
    AND l.repos_id = r.repos_id
    AND r.local_relpath = l.parent_relpath
-WHERE (l.local_relpath == '' AND l.repos_path != '')
+WHERE (l.local_relpath = '' AND l.repos_path != '')
    OR (l.op_depth = 0
        AND l.local_relpath != ''
        AND l.repos_path != ltrim(r.repos_path

Modified: subversion/trunk/subversion/libsvn_wc/wc-queries.sql
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc-queries.sql?rev=1397006&r1=1397005&r2=1397006&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc-queries.sql (original)
+++ subversion/trunk/subversion/libsvn_wc/wc-queries.sql Thu Oct 11 11:59:12 2012
@@ -245,7 +245,7 @@ WHERE wc_id = ?1
 SELECT local_relpath FROM nodes
 WHERE wc_id = ?1 AND op_depth = ?3
   AND IS_STRICT_DESCENDANT_OF(local_relpath, ?2)
-  AND presence == 'not-present'
+  AND presence = 'not-present'
 
 -- STMT_COMMIT_DESCENDANT_TO_BASE
 UPDATE NODES SET op_depth = 0, repos_id = ?4, repos_path = ?5, revision = ?6,
@@ -1421,7 +1421,7 @@ WHERE wc_id = ?1
 
 -- STMT_SELECT_ALL_NODES
 SELECT op_depth, local_relpath, parent_relpath, file_external FROM nodes
-WHERE wc_id == ?1
+WHERE wc_id = ?1
 
 /* ------------------------------------------------------------------------- */
 



Mime
View raw message