Merge pull request #541 from v-kaywon/changeUTC

Change utc
This commit is contained in:
Yuki Wong 2017-09-18 15:13:27 -07:00 committed by GitHub
commit 721343696f
3 changed files with 5 additions and 3 deletions

View file

@ -46,7 +46,7 @@ if ( is_col_enc() )
{
try
{
$conn1 = connect( null, null, true );
$conn1 = ae_connect( null, null, true );
$stmt = $conn1->query( $selectSql );
while ( $decrypted_row = $stmt->fetch( PDO::FETCH_ASSOC ))
{

View file

@ -46,7 +46,7 @@ if ( is_col_enc() )
{
try
{
$conn1 = connect( null, null, true );
$conn1 = ae_connect( null, null, true );
$stmt = $conn1->query( $selectSql );
while ( $decrypted_row = $stmt->fetch( PDO::FETCH_ASSOC ))
{

View file

@ -41,10 +41,12 @@ sqlsrv_free_stmt( $stmt );
// for AE only
if ( is_col_enc() )
{
$conn1 = connect( null, true );
$conn1 = ae_connect( null, true );
$selectSql = "SELECT * FROM $tbname";
$stmt = sqlsrv_query( $conn1, $selectSql );
if ( $stmt === false )
var_dump( sqlsrv_errors() );
$encrypted_row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC );
foreach( $encrypted_row as $key => $value )
{