]> git.mjollnir.org Git - moodle.git/commitdiff
Addding support for the new mssql_n ADOdb driver that,
authorstronk7 <stronk7>
Thu, 19 Oct 2006 17:29:37 +0000 (17:29 +0000)
committerstronk7 <stronk7>
Thu, 19 Oct 2006 17:29:37 +0000 (17:29 +0000)
transparently, prepends the N char for all the string
literals being set to MSSQL (until MS Unicode - standard-
support will arrive).

Merged from MOODLE_17_STABLE

lib/xmldb/classes/generators/mssql_n/mssql_n.class.php [new file with mode: 0644]

diff --git a/lib/xmldb/classes/generators/mssql_n/mssql_n.class.php b/lib/xmldb/classes/generators/mssql_n/mssql_n.class.php
new file mode 100644 (file)
index 0000000..65a7aba
--- /dev/null
@@ -0,0 +1,44 @@
+<?php // $Id$
+
+///////////////////////////////////////////////////////////////////////////
+//                                                                       //
+// NOTICE OF COPYRIGHT                                                   //
+//                                                                       //
+// Moodle - Modular Object-Oriented Dynamic Learning Environment         //
+//          http://moodle.com                                            //
+//                                                                       //
+// Copyright (C) 2001-3001 Martin Dougiamas        http://dougiamas.com  //
+//           (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com  //
+//                                                                       //
+// This program is free software; you can redistribute it and/or modify  //
+// it under the terms of the GNU General Public License as published by  //
+// the Free Software Foundation; either version 2 of the License, or     //
+// (at your option) any later version.                                   //
+//                                                                       //
+// This program is distributed in the hope that it will be useful,       //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
+// GNU General Public License for more details:                          //
+//                                                                       //
+//          http://www.gnu.org/copyleft/gpl.html                         //
+//                                                                       //
+///////////////////////////////////////////////////////////////////////////
+
+/// This class generate SQL code to be used against MSSQL
+/// with extended support to automatic handling of the "N"
+/// char for Unicode strings. As DB is the same, this inherits
+/// everything from XMLDBmssql
+
+require_once($CFG->libdir . '/xmldb/classes/generators/mssql/mssql.class.php');
+
+class XMLDBmssql_n extends XMLDBmssql {
+
+    /**
+     * Creates one new XMLDBmssql
+     */
+    function XMLDBmssql_n() {
+        XMLDBmssql::XMLDBmssql();
+    }
+}
+
+?>