https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113147

Revision: 113147
Author:   jeroendedauw
Date:     2012-03-06 16:21:07 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
increment to 1.8 alpha and attempt to fix bug 34855

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/INSTALL
    trunk/extensions/SemanticMediaWiki/RELEASE-NOTES
    trunk/extensions/SemanticMediaWiki/SemanticMediaWiki.php
    trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php

Modified: trunk/extensions/SemanticMediaWiki/INSTALL
===================================================================
--- trunk/extensions/SemanticMediaWiki/INSTALL  2012-03-06 16:06:38 UTC (rev 
113146)
+++ trunk/extensions/SemanticMediaWiki/INSTALL  2012-03-06 16:21:07 UTC (rev 
113147)
@@ -1,4 +1,4 @@
-[[Semantic MediaWiki 1.7.1]]
+[[Semantic MediaWiki 1.8]]
 
 Install instructions for the latest SMW version are also online in a more
 convenient format for reading:

Modified: trunk/extensions/SemanticMediaWiki/RELEASE-NOTES
===================================================================
--- trunk/extensions/SemanticMediaWiki/RELEASE-NOTES    2012-03-06 16:06:38 UTC 
(rev 113146)
+++ trunk/extensions/SemanticMediaWiki/RELEASE-NOTES    2012-03-06 16:21:07 UTC 
(rev 113147)
@@ -1,6 +1,16 @@
 For a documentation of all features, see http://semantic-mediawiki.org
 
 
+== SMW 1.8 ==
+
+THIS IS NOT A RELEASE YET
+
+Semantic MediaWiki 1.8 is currently in beta-quality and is not recommended for 
use in
+production until the actual release.
+
+* Dropped compatibility with MediaWiki 1.16.x (and earlier).
+* Full compatibility with MediaWiki 1.19 and foreward-compatibility with 1.20.
+
 == SMW 1.7.1 ==
 
 Released on March 5, 2012.

Modified: trunk/extensions/SemanticMediaWiki/SemanticMediaWiki.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/SemanticMediaWiki.php    2012-03-06 
16:06:38 UTC (rev 113146)
+++ trunk/extensions/SemanticMediaWiki/SemanticMediaWiki.php    2012-03-06 
16:21:07 UTC (rev 113147)
@@ -19,8 +19,8 @@
        die( 'Not an entry point.' );
 }
 
-if ( version_compare( $wgVersion, '1.16c', '<' ) ) {
-       die( '<b>Error:</b> This version of Semantic MediaWiki requires 
MediaWiki 1.16 or above; use SMW 1.6.x for MediaWiki 1.15.x.' );
+if ( version_compare( $wgVersion, '1.17c', '<' ) ) {
+       die( '<b>Error:</b> This version of Semantic MediaWiki requires 
MediaWiki 1.17 or above; use SMW 1.7.x for MediaWiki 1.16.x.' );
 }
 
 // Include the Validator extension if that hasn't been done yet, since it's 
required for SMW to work.
@@ -34,7 +34,7 @@
 }
 
 // The SMW version number.
-define( 'SMW_VERSION', '1.7.1' );
+define( 'SMW_VERSION', '1.8 alpha' );
 
 // Registration of the extension credits, see Special:Version.
 $wgExtensionCredits['semantic'][] = array(

Modified: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php       
2012-03-06 16:06:38 UTC (rev 113146)
+++ trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php       
2012-03-06 16:21:07 UTC (rev 113147)
@@ -1060,10 +1060,10 @@
                // we use a temporary table for executing this costly operation 
on the DB side
                $smw_tmp_unusedprops = $db->tableName( 'smw_tmp_unusedprops' );
                if ( $wgDBtype == 'postgres' ) { // PostgresQL: no in-memory 
tables available
-                       $sql = "CREATE OR REPLACE FUNCTION create_" . 
$smw_tmp_unusedprops . "() RETURNS void AS "
+                       $sql = "CREATE OR REPLACE FUNCTION 
create_smw_tmp_unusedprops() RETURNS void AS "
                                   . "$$ "
                                   . "BEGIN "
-                                  . " IF EXISTS(SELECT NULL FROM pg_tables 
WHERE tablename='" . $smw_tmp_unusedprops . "' AND schemaname = ANY 
(current_schemas(true))) "
+                                  . " IF EXISTS(SELECT NULL FROM pg_tables 
WHERE tablename=" . $smw_tmp_unusedprops . " AND schemaname = ANY 
(current_schemas(true))) "
                                   . " THEN DELETE FROM " . 
$smw_tmp_unusedprops . "; "
                                   . " ELSE "
                                   . "  CREATE TEMPORARY TABLE " . 
$smw_tmp_unusedprops . " ( title text ); "
@@ -1071,7 +1071,7 @@
                                   . "END; "
                                   . "$$ "
                                   . "LANGUAGE 'plpgsql'; "
-                                  . "SELECT create_" . $smw_tmp_unusedprops . 
"(); ";
+                                  . "SELECT create_smw_tmp_unusedprops(); ";
                } else { // MySQL: use temporary in-memory table
                        $sql = "CREATE TEMPORARY TABLE " . $smw_tmp_unusedprops 
. "( title VARCHAR(255) ) ENGINE=MEMORY";
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to