Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
emalherbi committed Apr 15, 2021
1 parent 4325ebe commit f46af0a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 75 deletions.
51 changes: 0 additions & 51 deletions src/INI.php

This file was deleted.

7 changes: 0 additions & 7 deletions src/MyMssql.ini

This file was deleted.

19 changes: 2 additions & 17 deletions src/MyMssql.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ public function __construct($ini = array(), $dl = '', $type = 'UTF-8')

if (!empty($ini)) {
$ini = $this->validateIni($ini);
// $this->setIni($ini);
}
$this->ini = $ini; // $this->getIni();
$this->ini = $ini;
$this->ini = $this->validateIni($this->ini);

$this->connect();
Expand Down Expand Up @@ -138,11 +137,6 @@ public function disconnect()
public function getIni()
{
try {
// if (true == $this->ini['VERBOSE']) {
// $this->logger('MyMssql Get Ini');
// }

// return parse_ini_file($this->RT.$this->DS.'MyMssql.ini');
return $this->ini;
} catch (Exception $e) {
$err = $e->getMessage();
Expand Down Expand Up @@ -306,7 +300,7 @@ public function query($sql)
$this->connect();

if ('UTF-8' != $this->type) {
$sql = iconv('UTF-8', $this->type, $sql);
$sql = @iconv('UTF-8', $this->type, $sql);
}

if ('SQLSRV' == $this->ini['ADAPTER']) {
Expand Down Expand Up @@ -557,15 +551,6 @@ private function querySx($sxName, $params, $test = false, $function = 'exec')

/* private */

// private function setIni($ini = array())
// {
// if (true == $this->ini['VERBOSE']) {
// $this->logger('MyMssql Set Ini');
// }

// INI::write($this->RT.$this->DS.'MyMssql.ini', array('INI' => $ini));
// }

private function sxExist($sxName)
{
$sql = '';
Expand Down

0 comments on commit f46af0a

Please sign in to comment.