Topic on Extension talk:YAMBE

Fix for not working on MSSQL

1
Kevin71246 (talkcontribs)

This wouldnt work for me. I do have MSSQL.

Fix:

LocalSettings.php for default install:

$URLSplit = "/index.php?title=";


yambe.php: (around line:205)

$res = $dbr->select(array ("revision", "text", "page",),

                    //"old_text",

                    "Top 1 old_text",

                     array( "page_title" =>$pgName, "page_namespace" => $ns),

                     __METHOD__,

                     //array ("ORDER BY"=>"rev_id desc limit 1"),

                    array ("ORDER BY"=>"rev_id desc"),

                     array("text" => array ("LEFT JOIN", "old_id=rev_text_id" ),

                           "revision" => array( 'LEFT JOIN', 'rev_page=page_id')));


Reply to "Fix for not working on MSSQL"