Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
Zend_Db_Adapter_Sqlsrv Class Reference
Inheritance diagram for Zend_Db_Adapter_Sqlsrv:
Zend_Db_Adapter_Abstract

Public Member Functions

 setTransactionIsolationLevel ($level=null)
 
 isConnected ()
 
 closeConnection ()
 
 prepare ($sql)
 
 lastInsertId ($tableName=null, $primaryKey=null)
 
 insert ($table, array $bind)
 
 listTables ()
 
 describeTable ($tableName, $schemaName=null)
 
 setFetchMode ($mode)
 
 limit ($sql, $count, $offset=0)
 
 supportsParameters ($type)
 
 getServerVersion ()
 
- Public Member Functions inherited from Zend_Db_Adapter_Abstract
 __construct ($config)
 
 getConnection ()
 
 getConfig ()
 
 setProfiler ($profiler)
 
 getProfiler ()
 
 getStatementClass ()
 
 setStatementClass ($class)
 
 query ($sql, $bind=array())
 
 beginTransaction ()
 
 commit ()
 
 rollBack ()
 
 insert ($table, array $bind)
 
 update ($table, array $bind, $where='')
 
 delete ($table, $where='')
 
 select ()
 
 getFetchMode ()
 
 fetchAll ($sql, $bind=array(), $fetchMode=null)
 
 fetchRow ($sql, $bind=array(), $fetchMode=null)
 
 fetchAssoc ($sql, $bind=array())
 
 fetchCol ($sql, $bind=array())
 
 fetchPairs ($sql, $bind=array())
 
 fetchOne ($sql, $bind=array())
 
 quote ($value, $type=null)
 
 quoteInto ($text, $value, $type=null, $count=null)
 
 quoteIdentifier ($ident, $auto=false)
 
 quoteColumnAs ($ident, $alias, $auto=false)
 
 quoteTableAs ($ident, $alias=null, $auto=false)
 
 getQuoteIdentifierSymbol ()
 
 lastSequenceId ($sequenceName)
 
 nextSequenceId ($sequenceName)
 
 foldCase ($key)
 
 __sleep ()
 
 __wakeup ()
 
 listTables ()
 
 describeTable ($tableName, $schemaName=null)
 
 isConnected ()
 
 closeConnection ()
 
 prepare ($sql)
 
 lastInsertId ($tableName=null, $primaryKey=null)
 
 setFetchMode ($mode)
 
 limit ($sql, $count, $offset=0)
 
 supportsParameters ($type)
 
 getServerVersion ()
 

Protected Member Functions

 _connect ()
 
 _checkRequiredOptions (array $config)
 
 _quote ($value)
 
 _beginTransaction ()
 
 _commit ()
 
 _rollBack ()
 
- Protected Member Functions inherited from Zend_Db_Adapter_Abstract
 _checkRequiredOptions (array $config)
 
 _whereExpr ($where)
 
 _quote ($value)
 
 _quoteIdentifierAs ($ident, $alias=null, $auto=false, $as=' AS ')
 
 _quoteIdentifier ($value, $auto=false)
 
 _connect ()
 
 _beginTransaction ()
 
 _commit ()
 
 _rollBack ()
 

Protected Attributes

 $_config
 
 $_lastInsertId
 
 $_lastInsertSQL = 'SELECT SCOPE_IDENTITY() as Current_Identity'
 
 $_numericDataTypes
 
 $_defaultStmtClass = 'Zend_Db_Statement_Sqlsrv'
 
- Protected Attributes inherited from Zend_Db_Adapter_Abstract
 $_config = array()
 
 $_fetchMode = Zend_Db::FETCH_ASSOC
 
 $_profiler
 
 $_defaultStmtClass = 'Zend_Db_Statement'
 
 $_defaultProfilerClass = 'Zend_Db_Profiler'
 
 $_connection = null
 
 $_caseFolding = Zend_Db::CASE_NATURAL
 
 $_autoQuoteIdentifiers = true
 
 $_numericDataTypes
 
 $_allowSerialization = true
 
 $_autoReconnectOnUnserialize = false
 

Detailed Description

Definition at line 40 of file Sqlsrv.php.

Member Function Documentation

◆ _beginTransaction()

_beginTransaction ( )
protected

Leave autocommit mode and begin a transaction.

Returns
void
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception

Definition at line 527 of file Sqlsrv.php.

528  {
529  if (!sqlsrv_begin_transaction($this->_connection)) {
530  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
531  throw new Zend_Db_Adapter_Sqlsrv_Exception(sqlsrv_errors());
532  }
533  }

◆ _checkRequiredOptions()

_checkRequiredOptions ( array  $config)
protected

Check for config options that are mandatory. Throw exceptions if any are missing.

Parameters
array$config
Exceptions
Zend_Db_Adapter_Exception
See also
Zend_Db_Adapter_Exception
Zend_Db_Adapter_Exception
Zend_Db_Adapter_Exception

Definition at line 179 of file Sqlsrv.php.

180  {
181  // we need at least a dbname
182  if (! array_key_exists('dbname', $config)) {
184  #require_once 'Zend/Db/Adapter/Exception.php';
185  throw new Zend_Db_Adapter_Exception("Configuration array must have a key for 'dbname' that names the database instance");
186  }
187 
188  if (! array_key_exists('password', $config) && array_key_exists('username', $config)) {
192  #require_once 'Zend/Db/Adapter/Exception.php';
193  throw new Zend_Db_Adapter_Exception("Configuration array must have a key for 'password' for login credentials.
194  If Windows Authentication is desired, both keys 'username' and 'password' should be ommited from config.");
195  }
196 
197  if (array_key_exists('password', $config) && !array_key_exists('username', $config)) {
201  #require_once 'Zend/Db/Adapter/Exception.php';
202  throw new Zend_Db_Adapter_Exception("Configuration array must have a key for 'username' for login credentials.
203  If Windows Authentication is desired, both keys 'username' and 'password' should be ommited from config.");
204  }
205  }
$config
Definition: fraud_order.php:17

◆ _commit()

_commit ( )
protected

Commit a transaction and return to autocommit mode.

Returns
void
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception

Definition at line 541 of file Sqlsrv.php.

542  {
543  if (!sqlsrv_commit($this->_connection)) {
544  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
545  throw new Zend_Db_Adapter_Sqlsrv_Exception(sqlsrv_errors());
546  }
547  }

◆ _connect()

_connect ( )
protected

Creates a connection resource.

Returns
void
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception
See also
Zend_Db_Adapter_Sqlsrv_Exception
Zend_Db_Adapter_Sqlsrv_Exception

Definition at line 113 of file Sqlsrv.php.

114  {
115  if (is_resource($this->_connection)) {
116  // connection already exists
117  return;
118  }
119 
120  if (!extension_loaded('sqlsrv')) {
124  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
125  throw new Zend_Db_Adapter_Sqlsrv_Exception('The Sqlsrv extension is required for this adapter but the extension is not loaded');
126  }
127 
128  $serverName = $this->_config['host'];
129  if (isset($this->_config['port'])) {
130  $port = (integer) $this->_config['port'];
131  $serverName .= ', ' . $port;
132  }
133 
134  $connectionInfo = array(
135  'Database' => $this->_config['dbname'],
136  );
137 
138  if (isset($this->_config['username']) && isset($this->_config['password']))
139  {
140  $connectionInfo += array(
141  'UID' => $this->_config['username'],
142  'PWD' => $this->_config['password'],
143  );
144  }
145  // else - windows authentication
146 
147  if (!empty($this->_config['driver_options'])) {
148  foreach ($this->_config['driver_options'] as $option => $value) {
149  // A value may be a constant.
150  if (is_string($value)) {
151  $constantName = strtoupper($value);
152  if (defined($constantName)) {
153  $connectionInfo[$option] = constant($constantName);
154  } else {
155  $connectionInfo[$option] = $value;
156  }
157  }
158  }
159  }
160 
161  $this->_connection = sqlsrv_connect($serverName, $connectionInfo);
162 
163  if (!$this->_connection) {
167  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
168  throw new Zend_Db_Adapter_Sqlsrv_Exception(sqlsrv_errors());
169  }
170  }
$value
Definition: gender.phtml:16

◆ _quote()

_quote (   $value)
protected

Quote a raw string.

Parameters
string$valueRaw string
Returns
string Quoted string

Definition at line 309 of file Sqlsrv.php.

310  {
311  if (is_int($value)) {
312  return $value;
313  } elseif (is_float($value)) {
314  return sprintf('%F', $value);
315  }
316 
317  $value = addcslashes($value, "\000\032");
318  return "'" . str_replace("'", "''", $value) . "'";
319  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$value
Definition: gender.phtml:16

◆ _rollBack()

_rollBack ( )
protected

Roll back a transaction and return to autocommit mode.

Returns
void
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception

Definition at line 555 of file Sqlsrv.php.

556  {
557  if (!sqlsrv_rollback($this->_connection)) {
558  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
559  throw new Zend_Db_Adapter_Sqlsrv_Exception(sqlsrv_errors());
560  }
561  }

◆ closeConnection()

closeConnection ( )

Force the connection to close.

Returns
void

Definition at line 271 of file Sqlsrv.php.

272  {
273  if ($this->isConnected()) {
274  sqlsrv_close($this->_connection);
275  }
276  $this->_connection = null;
277  }

◆ describeTable()

describeTable (   $tableName,
  $schemaName = null 
)

Returns the column descriptions for a table.

The return value is an associative array keyed by the column name, as returned by the RDBMS.

The value of each array element is an associative array with the following keys:

SCHEMA_NAME => string; name of schema TABLE_NAME => string; COLUMN_NAME => string; column name COLUMN_POSITION => number; ordinal position of column in table DATA_TYPE => string; SQL datatype name of column DEFAULT => string; default expression of column, null if none NULLABLE => boolean; true if column can have nulls LENGTH => number; length of CHAR/VARCHAR SCALE => number; scale of NUMERIC/DECIMAL PRECISION => number; precision of NUMERIC/DECIMAL UNSIGNED => boolean; unsigned property of an integer type PRIMARY => boolean; true if column is part of the primary key PRIMARY_POSITION => integer; position of column in primary key IDENTITY => integer; true if column is auto-generated with unique values

Todo:
Discover integer unsigned property.
Parameters
string$tableName
string$schemaNameOPTIONAL
Returns
array

Discover metadata information about this table.

Discover primary key column(s) for this table.

Definition at line 433 of file Sqlsrv.php.

434  {
438  $sql = "exec sp_columns @table_name = " . $this->quoteIdentifier($tableName, true);
439  $stmt = $this->query($sql);
440  $result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
441 
442  // ZF-7698
443  $stmt->closeCursor();
444 
445  if (count($result) == 0) {
446  return array();
447  }
448 
449  $owner = 1;
450  $table_name = 2;
451  $column_name = 3;
452  $type_name = 5;
453  $precision = 6;
454  $length = 7;
455  $scale = 8;
456  $nullable = 10;
457  $column_def = 12;
458  $column_position = 16;
459 
463  $tableOwner = $result[0][$owner];
464  $sql = "exec sp_pkeys @table_owner = " . $tableOwner
465  . ", @table_name = " . $this->quoteIdentifier($tableName, true);
466  $stmt = $this->query($sql);
467 
468  $primaryKeysResult = $stmt->fetchAll(Zend_Db::FETCH_NUM);
469  $primaryKeyColumn = array();
470 
471  // Per http://msdn.microsoft.com/en-us/library/ms189813.aspx,
472  // results from sp_keys stored procedure are:
473  // 0=TABLE_QUALIFIER 1=TABLE_OWNER 2=TABLE_NAME 3=COLUMN_NAME 4=KEY_SEQ 5=PK_NAME
474 
475  $pkey_column_name = 3;
476  $pkey_key_seq = 4;
477  foreach ($primaryKeysResult as $pkeysRow) {
478  $primaryKeyColumn[$pkeysRow[$pkey_column_name]] = $pkeysRow[$pkey_key_seq];
479  }
480 
481  $desc = array();
482  $p = 1;
483  foreach ($result as $key => $row) {
484  $identity = false;
485  $words = explode(' ', $row[$type_name], 2);
486  if (isset($words[0])) {
487  $type = $words[0];
488  if (isset($words[1])) {
489  $identity = (bool) preg_match('/identity/', $words[1]);
490  }
491  }
492 
493  $isPrimary = array_key_exists($row[$column_name], $primaryKeyColumn);
494  if ($isPrimary) {
495  $primaryPosition = $primaryKeyColumn[$row[$column_name]];
496  } else {
497  $primaryPosition = null;
498  }
499 
500  $desc[$this->foldCase($row[$column_name])] = array(
501  'SCHEMA_NAME' => null, // @todo
502  'TABLE_NAME' => $this->foldCase($row[$table_name]),
503  'COLUMN_NAME' => $this->foldCase($row[$column_name]),
504  'COLUMN_POSITION' => (int) $row[$column_position],
505  'DATA_TYPE' => $type,
506  'DEFAULT' => $row[$column_def],
507  'NULLABLE' => (bool) $row[$nullable],
508  'LENGTH' => $row[$length],
509  'SCALE' => $row[$scale],
510  'PRECISION' => $row[$precision],
511  'UNSIGNED' => null, // @todo
512  'PRIMARY' => $isPrimary,
513  'PRIMARY_POSITION' => $primaryPosition,
514  'IDENTITY' => $identity,
515  );
516  }
517 
518  return $desc;
519  }
$tableName
Definition: trigger.php:13
$type
Definition: item.phtml:13
const FETCH_NUM
Definition: Db.php:153
query($sql, $bind=array())
Definition: Abstract.php:457
quoteIdentifier($ident, $auto=false)
Definition: Abstract.php:959

◆ getServerVersion()

getServerVersion ( )

Retrieve server version in PHP style

Returns
string

Definition at line 668 of file Sqlsrv.php.

669  {
670  $this->_connect();
671  $serverInfo = sqlsrv_server_info($this->_connection);
672 
673  if ($serverInfo !== false) {
674  return $serverInfo['SQLServerVersion'];
675  }
676 
677  return null;
678  }

◆ insert()

insert (   $table,
array  $bind 
)

Inserts a table row with specified data.

Parameters
mixed$tableThe table to insert data into.
array$bindColumn-value pairs.
Returns
int The number of affected rows.

Definition at line 358 of file Sqlsrv.php.

359  {
360  // extract and quote col names from the array keys
361  $cols = array();
362  $vals = array();
363  foreach ($bind as $col => $val) {
364  $cols[] = $this->quoteIdentifier($col, true);
365  if ($val instanceof Zend_Db_Expr) {
366  $vals[] = $val->__toString();
367  unset($bind[$col]);
368  } else {
369  $vals[] = '?';
370  }
371  }
372 
373  // build the statement
374  $sql = "INSERT INTO "
375  . $this->quoteIdentifier($table, true)
376  . ' (' . implode(', ', $cols) . ') '
377  . 'VALUES (' . implode(', ', $vals) . ')'
378  . ' ' . $this->_lastInsertSQL;
379 
380  // execute the statement and return the number of affected rows
381  $stmt = $this->query($sql, array_values($bind));
382  $result = $stmt->rowCount();
383 
384  $stmt->nextRowset();
385 
386  $this->_lastInsertId = $stmt->fetchColumn();
387 
388  return $result;
389  }
query($sql, $bind=array())
Definition: Abstract.php:457
$table
Definition: trigger.php:14
quoteIdentifier($ident, $auto=false)
Definition: Abstract.php:959

◆ isConnected()

isConnected ( )

Test if a connection is active

Returns
boolean

Definition at line 259 of file Sqlsrv.php.

260  {
261  return (is_resource($this->_connection)
262  && (get_resource_type($this->_connection) == 'SQL Server Connection')
263  );
264  }

◆ lastInsertId()

lastInsertId (   $tableName = null,
  $primaryKey = null 
)

Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.

As a convention, on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence from the arguments and returns the last id generated by that sequence. On RDBMS brands that support IDENTITY/AUTOINCREMENT columns, this method returns the last value generated for such a column, and the table name argument is disregarded.

Parameters
string$tableNameOPTIONAL Name of table.
string$primaryKeyOPTIONAL Name of primary key column.
Returns
string

Definition at line 335 of file Sqlsrv.php.

336  {
337  if ($tableName) {
338  $tableName = $this->quote($tableName);
339  $sql = 'SELECT IDENT_CURRENT (' . $tableName . ') as Current_Identity';
340  return (string) $this->fetchOne($sql);
341  }
342 
343  if ($this->_lastInsertId > 0) {
344  return (string) $this->_lastInsertId;
345  }
346 
347  $sql = $this->_lastInsertSQL;
348  return (string) $this->fetchOne($sql);
349  }
$tableName
Definition: trigger.php:13
fetchOne($sql, $bind=array())
Definition: Abstract.php:826
quote($value, $type=null)
Definition: Abstract.php:859

◆ limit()

limit (   $sql,
  $count,
  $offset = 0 
)

Adds an adapter-specific LIMIT clause to the SELECT statement.

Parameters
string$sql
integer$count
integer$offsetOPTIONAL
Returns
string
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception
See also
Zend_Db_Adapter_Exception

Definition at line 601 of file Sqlsrv.php.

602  {
603  $count = intval($count);
604  if ($count <= 0) {
605  #require_once 'Zend/Db/Adapter/Exception.php';
606  throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
607  }
608 
609  $offset = intval($offset);
610  if ($offset < 0) {
612  #require_once 'Zend/Db/Adapter/Exception.php';
613  throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
614  }
615 
616  if ($offset == 0) {
617  $sql = preg_replace('/^SELECT\s/i', 'SELECT TOP ' . $count . ' ', $sql);
618  } else {
619  $orderby = stristr($sql, 'ORDER BY');
620 
621  if (!$orderby) {
622  $over = 'ORDER BY (SELECT 0)';
623  } else {
624  $over = preg_replace('/\"[^,]*\".\"([^,]*)\"/i', '"inner_tbl"."$1"', $orderby);
625  }
626 
627  // Remove ORDER BY clause from $sql
628  $sql = preg_replace('/\s+ORDER BY(.*)/', '', $sql);
629 
630  // Add ORDER BY clause as an argument for ROW_NUMBER()
631  $sql = "SELECT ROW_NUMBER() OVER ($over) AS \"ZEND_DB_ROWNUM\", * FROM ($sql) AS inner_tbl";
632 
633  $start = $offset + 1;
634 
635  if ($count == PHP_INT_MAX) {
636  $sql = "WITH outer_tbl AS ($sql) SELECT * FROM outer_tbl WHERE \"ZEND_DB_ROWNUM\" >= $start";
637  }
638  else {
639  $end = $offset + $count;
640  $sql = "WITH outer_tbl AS ($sql) SELECT * FROM outer_tbl WHERE \"ZEND_DB_ROWNUM\" BETWEEN $start AND $end";
641  }
642  }
643 
644  return $sql;
645  }
$count
Definition: recent.phtml:13
$start
Definition: listing.phtml:18

◆ listTables()

listTables ( )

Returns a list of the tables in the database.

Returns
array

Definition at line 396 of file Sqlsrv.php.

397  {
398  $this->_connect();
399  $sql = "SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name";
400  return $this->fetchCol($sql);
401  }
fetchCol($sql, $bind=array())
Definition: Abstract.php:792

◆ prepare()

prepare (   $sql)

Returns an SQL statement for preparation.

Parameters
string$sqlThe SQL statement with placeholders.
Returns
Zend_Db_Statement_Sqlsrv
See also
Zend_Loader

Definition at line 285 of file Sqlsrv.php.

286  {
287  $this->_connect();
288  $stmtClass = $this->_defaultStmtClass;
289 
290  if (!class_exists($stmtClass)) {
294  #require_once 'Zend/Loader.php';
295  Zend_Loader::loadClass($stmtClass);
296  }
297 
298  $stmt = new $stmtClass($this, $sql);
299  $stmt->setFetchMode($this->_fetchMode);
300  return $stmt;
301  }
static loadClass($class, $dirs=null)
Definition: Loader.php:52

◆ setFetchMode()

setFetchMode (   $mode)

Set the fetch mode.

Todo:
Support FETCH_CLASS and FETCH_INTO.
Parameters
integer$modeA fetch mode.
Returns
void
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception

Definition at line 572 of file Sqlsrv.php.

573  {
574  switch ($mode) {
575  case Zend_Db::FETCH_NUM: // seq array
576  case Zend_Db::FETCH_ASSOC: // assoc array
577  case Zend_Db::FETCH_BOTH: // seq+assoc array
578  case Zend_Db::FETCH_OBJ: // object
579  $this->_fetchMode = $mode;
580  break;
581  case Zend_Db::FETCH_BOUND: // bound to PHP variable
582  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
583  throw new Zend_Db_Adapter_Sqlsrv_Exception('FETCH_BOUND is not supported yet');
584  break;
585  default:
586  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
587  throw new Zend_Db_Adapter_Sqlsrv_Exception("Invalid fetch mode '$mode' specified");
588  break;
589  }
590  }
const FETCH_BOUND
Definition: Db.php:144
const FETCH_ASSOC
Definition: Db.php:142
const FETCH_BOTH
Definition: Db.php:143
const FETCH_NUM
Definition: Db.php:153
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15
const FETCH_OBJ
Definition: Db.php:154

◆ setTransactionIsolationLevel()

setTransactionIsolationLevel (   $level = null)

Set the transaction isoltion level.

Parameters
integer | null$levelA fetch mode from SQLSRV_TXN_*.
Returns
true
Exceptions
Zend_Db_Adapter_Sqlsrv_Exception

Definition at line 214 of file Sqlsrv.php.

215  {
216  $this->_connect();
217  $sql = null;
218 
219  // Default transaction level in sql server
220  if ($level === null)
221  {
222  $level = SQLSRV_TXN_READ_COMMITTED;
223  }
224 
225  switch ($level) {
226  case SQLSRV_TXN_READ_UNCOMMITTED:
227  $sql = "READ UNCOMMITTED";
228  break;
229  case SQLSRV_TXN_READ_COMMITTED:
230  $sql = "READ COMMITTED";
231  break;
232  case SQLSRV_TXN_REPEATABLE_READ:
233  $sql = "REPEATABLE READ";
234  break;
235  case SQLSRV_TXN_SNAPSHOT:
236  $sql = "SNAPSHOT";
237  break;
238  case SQLSRV_TXN_SERIALIZABLE:
239  $sql = "SERIALIZABLE";
240  break;
241  default:
242  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
243  throw new Zend_Db_Adapter_Sqlsrv_Exception("Invalid transaction isolation level mode '$level' specified");
244  }
245 
246  if (!sqlsrv_query($this->_connection, "SET TRANSACTION ISOLATION LEVEL $sql;")) {
247  #require_once 'Zend/Db/Adapter/Sqlsrv/Exception.php';
248  throw new Zend_Db_Adapter_Sqlsrv_Exception("Transaction cannot be changed to '$level'");
249  }
250 
251  return true;
252  }

◆ supportsParameters()

supportsParameters (   $type)

Check if the adapter supports real SQL parameters.

Parameters
string$type'positional' or 'named'
Returns
bool

Definition at line 653 of file Sqlsrv.php.

654  {
655  if ($type == 'positional') {
656  return true;
657  }
658 
659  // if its 'named' or anything else
660  return false;
661  }
$type
Definition: item.phtml:13

Field Documentation

◆ $_config

$_config
protected
Initial value:
= array(
'dbname' => null,
'username' => null,
'password' => null,
)

Definition at line 53 of file Sqlsrv.php.

◆ $_defaultStmtClass

$_defaultStmtClass = 'Zend_Db_Statement_Sqlsrv'
protected

Definition at line 105 of file Sqlsrv.php.

◆ $_lastInsertId

$_lastInsertId
protected

Definition at line 64 of file Sqlsrv.php.

◆ $_lastInsertSQL

$_lastInsertSQL = 'SELECT SCOPE_IDENTITY() as Current_Identity'
protected

Definition at line 71 of file Sqlsrv.php.

◆ $_numericDataTypes

$_numericDataTypes
protected
Initial value:

Definition at line 84 of file Sqlsrv.php.


The documentation for this class was generated from the following file: