[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12102] Property: add fetcmode to mssql
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [12102] Property: add fetcmode to mssql |
Date: |
Wed, 24 Sep 2014 18:55:46 +0000 |
Revision: 12102
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12102
Author: sigurdne
Date: 2014-09-24 18:55:46 +0000 (Wed, 24 Sep 2014)
Log Message:
-----------
Property: add fetcmode to mssql
Modified Paths:
--------------
trunk/property/inc/class.db_mssql.inc.php
Modified: trunk/property/inc/class.db_mssql.inc.php
===================================================================
--- trunk/property/inc/class.db_mssql.inc.php 2014-09-24 18:54:49 UTC (rev
12101)
+++ trunk/property/inc/class.db_mssql.inc.php 2014-09-24 18:55:46 UTC (rev
12102)
@@ -30,6 +30,7 @@
var $Debug = false;
var $auto_stripslashes = false;
protected $Transaction = false;
+ var $fetchmode = 'ASSOC';//'BOTH';
function connect()
{
@@ -155,7 +156,10 @@
$this->Record = array();
for($i = 0; $i < count($rec); $i++)
{
- $this->Record[$i] = $rec[$i];
+ if($this->fetchmode == 'BOTH')
+ {
+ $this->Record[$i] =
$rec[$i];
+ }
$o =
mssql_fetch_field($this->Query_ID, $i);
$this->Record[$o->name] =
$rec[$i];
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12102] Property: add fetcmode to mssql,
Sigurd Nes <=