~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to lib/adodb/drivers/adodb-odbc_mssql.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/* 
3
 
V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
 
3
V4.98 13 Feb 2008  (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved.
4
4
  Released under both BSD license and Lesser GPL library license. 
5
5
  Whenever there is any discrepancy between the two licenses, 
6
6
  the BSD license will take precedence. 
35
35
        var $substr = 'substring';
36
36
        var $length = 'len';
37
37
        var $ansiOuter = true; // for mssql7 or later
38
 
        var $identitySQL = 'select @@IDENTITY'; // 'select SCOPE_IDENTITY'; # for mssql 2000
 
38
        var $identitySQL = 'select SCOPE_IDENTITY()'; // 'select SCOPE_IDENTITY'; # for mssql 2000
39
39
        var $hasInsertID = true;
40
40
        var $connectStmt = 'SET CONCAT_NULL_YIELDS_NULL OFF'; # When SET CONCAT_NULL_YIELDS_NULL is ON, 
41
41
                                                                                                                  # concatenating a null value with a string yields a NULL result
47
47
        }
48
48
 
49
49
        // crashes php...
50
 
    //Note replaced by some different code to allow it to work properly
51
 
    //for Moode environmental checks
52
50
        function ServerInfo()
53
51
        {
 
52
        global $ADODB_FETCH_MODE;
 
53
                $save = $ADODB_FETCH_MODE;
 
54
                $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
54
55
                $row = $this->GetRow("execute sp_server_info 2");
55
 
 
56
 
                $arr['description'] = $row['attribute_value'];
 
56
                $ADODB_FETCH_MODE = $save;
 
57
                if (!is_array($row)) return false;
 
58
                $arr['description'] = $row[2];
57
59
                $arr['version'] = ADOConnection::_findvers($arr['description']);
58
60
                return $arr;
59
61
        }