Commit graph

347 commits

Author SHA1 Message Date
Jenny Tam 5f555dfea2 Modified the expected results for a bind column test 2018-05-02 11:40:55 -07:00
Jenny Tam 04fa748a45 Added new tests for issue 678 2018-05-01 15:14:11 -07:00
Jenny Tam 06e92979d2 Use helper method isAEQualified instead 2018-04-30 12:51:18 -07:00
Jenny Tam 2fc3afe472 Added a new test for issue 707 2018-04-27 10:38:21 -07:00
Jenny Tam 5bb3f1a2ec Modified the error message to indicate value out of range 2018-04-26 08:48:41 -07:00
Jenny Tam 218497c642 Made changes to output param handling code to convert doubles to ints if necessary 2018-04-25 15:43:56 -07:00
Jenny Tam 72ca1cd1eb Fixed incorrect error when binding inout PDO STR with binary encoding 2018-04-24 15:38:53 -07:00
Jenny Tam b8d1feb9ba Modified the driver tests as well 2018-04-12 08:41:35 -07:00
David Puglielli 454bc2739f
Merge pull request #744 from david-puglielli/Revert-bigint-change
Reverted change handling bigint output parameters
2018-04-11 14:21:20 -07:00
David Puglielli bbf951cad8 Minor fixes 2018-04-11 13:37:31 -07:00
David Puglielli 99a11c1434 Fixed binary test 2018-04-11 12:09:31 -07:00
David Puglielli 8c681f25d5 Updated failing tests 2018-04-10 19:45:18 -07:00
David Puglielli 2960738883 Reverted change handling bigint output parameters 2018-04-09 17:15:58 -07:00
David Puglielli f15a3f843b Fixed test again 2018-04-05 12:53:18 -07:00
David Puglielli 761c03ebff Fixed test again 2018-04-05 11:52:57 -07:00
David Puglielli 54c0f5afd5 Fixed output to test 2018-04-04 11:39:52 -07:00
v-kaywon f40eeac83c fetching float as integers doesn't work for PHP 7.0 2018-03-19 12:15:49 -07:00
v-kaywon 6a96ef482e increase epsilon comparing floats in pdo_ae_output_param_floats.phpt 2018-03-15 16:11:35 -07:00
Yuki Wong e226968788
Merge pull request #698 from v-kaywon/aetests
add tests for testing insertion with the pdo drivers with all data ty…
2018-03-14 10:50:16 -07:00
v-kaywon d88967cf4a address review comments 2018-03-13 16:15:42 -07:00
Jenny Tam 675d3a82b5 Applied review comments 2018-03-13 14:49:28 -07:00
Jenny Tam 7a6a8d5a72 PDO tests for retrieving data as output params using various PDO param types 2018-03-13 14:04:40 -07:00
v-kaywon 87cd9b45e2 test numeric test 2018-03-13 13:59:39 -07:00
v-kaywon c1afad2d57 fix tests according to review comments 2018-03-13 12:50:20 -07:00
v-kaywon 24938f5232 fix pdo_ae_insert_pdoparam_numeric.phpt 2018-03-06 14:02:48 -08:00
v-kaywon 3d94c21950 fix pdo_ae_insert_pdoparam_numeric for x86 platform 2018-03-06 11:58:56 -08:00
v-kaywon 7870d88245 fix some tests 2018-03-05 15:32:08 -08:00
v-kaywon 85871448bc fix some tests 2018-03-05 13:21:19 -08:00
v-kaywon 2925f6d444 polished insert pdoparam decimal precision test 2018-03-05 12:24:47 -08:00
v-kaywon 03845da0c8 polich PDO side ae related tests 2018-03-02 16:34:47 -08:00
v-kaywon 5eaaa78292 add tests for fetching with bindColumn 2018-02-27 13:38:49 -08:00
v-kaywon 015be292d9 add tests for testing insertion with the pdo drivers with all data types and variation of precisions and scales 2018-02-26 15:56:05 -08:00
Jenny Tam 8292fb7a15 Modified tests to check the right error messages 2018-02-08 13:25:08 -08:00
Jenny Tam ebbb676b8a Fixed the failing tests 2018-02-08 09:51:52 -08:00
Jenny Tam bad65817e1 ColumnEncryption keyword reserved for Windows for now 2018-02-08 09:30:07 -08:00
Jenny Tam db56c0344e Removed support for Custom Keystore provider 2018-02-08 09:00:16 -08:00
Jenny Tam 907e8c8e5c Modified tests and setup to run AE tests in Azure 2018-01-31 08:27:06 -08:00
v-kaywon 5c1cb604fa fix pdostatement_fetch_orientation.phpt 2018-01-18 16:16:09 -08:00
v-kaywon 007e15c318 fix tests that uses scrollable cursor with AE 2018-01-18 15:35:13 -08:00
Jenny Tam 79b49fd93b Fixed regex for ODBC driver names (#653) 2018-01-02 17:53:30 -08:00
v-kaywon 99f27700b1 add comments about ae not supporting parameters in select list 2017-12-19 15:17:01 -08:00
v-kaywon 294537ecb3 add helper function for checking error messages 2017-12-19 11:41:28 -08:00
v-kaywon 57d7400f2c fix tests related to having parameter markers in the select list 2017-12-18 16:00:02 -08:00
Jenny Tam 20b178ae7a Fix PDO67_BindTruncation test 2017-12-14 08:12:42 -08:00
v-kaywon bc9ca5e486 fix AE related tests 2017-12-12 17:12:48 -08:00
v-kaywon feebf20d4e fix setting encryption type in MsCommon_mid-refactor.inc 2017-12-12 14:36:02 -08:00
Yuki Wong 491efd7ffc
Merge pull request #612 from v-kaywon/refactorPDOTests4
refactor PDO_SQLSRV bind param related tests
2017-12-08 15:24:06 -08:00
v-kaywon b808f3bd87 change normal encryption to none encryption 2017-12-08 12:11:53 -08:00
v-kaywon c5d02cbeec apply review comments 2 2017-12-07 14:10:10 -08:00
v-kaywon 98d7307860 do not encrypt column needed for ORDER BY clause 2017-12-06 11:54:10 -08:00
v-kaywon 9196c557f8 update MsCommon_mid-refactor.inc to not require AE_Ksp 2017-12-05 16:34:18 -08:00
v-kaywon 8297fce1b9 apply review comments 2017-12-05 16:32:18 -08:00
v-kaywon 44b31bf728 use varaibles for ksp related constants 2017-12-05 12:23:29 -08:00
v-kaywon aa04104bb2 refactor KSP related tests 2017-12-05 09:54:11 -08:00
v-kaywon 0bb4703e2b define getKSPPath function and ksp related variabled in MsCommon_mid-refactor.inc 2017-12-04 15:11:57 -08:00
v-kaywon 3e1a346ef7 cosmetic changes 2017-12-04 10:09:59 -08:00
v-kaywon 5923b42727 fix double reclaring KSP function; fixed tests with emulate prepare or direct query 2017-11-30 17:34:20 -08:00
v-kaywon 3b65f26776 fix line endings 2017-11-30 16:26:39 -08:00
v-kaywon f3e31b834d refactor PDO_SQLSRV bind param related tests 2017-11-30 14:37:25 -08:00
Yuki Wong f2884e0979
Merge pull request #594 from v-kaywon/adjustprecision
Adjust precision for decimal input when column encryption is enabled
2017-11-22 13:58:53 -08:00
Jenny Tam ab5bdb4ac0 Merge branch 'dev' into describeParam 2017-11-21 15:29:09 -08:00
v-kaywon 20480812c2 remove include string in core_stmt.cpp 2017-11-20 16:06:39 -08:00
v-kaywon d35087c608 fix two odbc version test 2017-11-20 13:01:10 -08:00
v-kaywon f815043a05 change description of inputs 2017-11-17 16:57:23 -08:00
v-kaywon 90029e7e54 add test for scientific notation 2017-11-17 10:21:03 -08:00
David Puglielli 01dd22cac2
Merge pull request #595 from david-puglielli/nextrowset-revert
Revert nextRowset changes
2017-11-16 22:06:12 -05:00
David Puglielli b2e962100d Refactored tests 2017-11-16 16:43:45 -08:00
v-kaywon 4fb2c80e69 change expected output 2017-11-16 11:32:24 -08:00
Jenny Tam ef45560db0 Modified how to bind parameters when AE is enabled 2017-11-16 10:30:44 -08:00
v-kaywon 04d509ef9d change values in tests to only up to 38 decimal digits 2017-11-16 10:09:10 -08:00
David Puglielli 633024c22b Revert next result changes, improve tests 2017-11-15 17:39:00 -08:00
v-kaywon 9d6aba62ce implement adjustInputPrecision 2017-11-15 16:36:10 -08:00
Jenny Tam d633691b5b Raised the initial buffer size and modified tests as per review 2017-11-10 15:04:07 -08:00
Jenny Tam 52b612ece8 Fix to GitHub issue 574 2017-11-09 15:24:08 -08:00
Yuki Wong 07ac237def
Merge pull request #582 from v-kaywon/refactorPDOTests3
Refactor PDO tests with client buffer or table with all datatypes
2017-11-08 11:23:36 -08:00
v-kaywon 12f5e727b5 apply review commnets 2017-11-07 17:12:43 -08:00
David Puglielli e2e82b245b Fixed line endings 2017-11-07 16:06:19 -08:00
v-kaywon bedfd462f7 fix decimal related tests to work on SQL Server 2k12 2017-11-07 15:59:28 -08:00
David Puglielli 91418df548 Added tests for manual verification 2017-11-07 15:04:50 -08:00
v-kaywon 7c02574cfc refactor pdostatement_GetDataType.phpt to use common method for different columns 2017-11-07 12:56:00 -08:00
v-kaywon 3d2c54ac2c test column encryption unsupported types in MsData_PDO_AllTypes.inc 2017-11-07 12:06:49 -08:00
v-kaywon 708a29c45d remove odl MsData.inc 2017-11-07 12:04:19 -08:00
v-kaywon b695cc1655 test column encryption unsupported types 2017-11-07 11:45:13 -08:00
v-kaywon ce23b38557 change to default API used for inserting row in pdo_ae_output_param.phpt 2017-11-07 10:01:14 -08:00
v-kaywon 8ea405b69e update AEData.inc and MsCommon_mid-refactor.inc for the ae related tests 2017-11-07 08:59:38 -08:00
v-kaywon 1e69c86d69 add refactored ae related tests 2017-11-06 17:30:11 -08:00
v-kaywon e09dd9163d add exception handling for pdo_transaction.phpt 2017-11-03 17:10:45 -07:00
v-kaywon a60992f8a5 address review comments 2017-11-03 17:01:09 -07:00
v-kaywon 0c74a27186 address review comments 2017-11-03 14:35:16 -07:00
v-kaywon 529c5aa77b fix typo in pdo_utf8_conn.phpt 2017-11-02 10:33:18 -07:00
v-kaywon a68abdbc6c change include file to MsCommon_mid-refactor.inc in pdo_quote.phpt 2017-11-02 09:51:01 -07:00
v-kaywon 1317d67170 remove xfail from pdostatement_nextRowset.phpt 2017-11-01 17:24:17 -07:00
v-kaywon 50d3c19c47 refactor PDO tests with client buffer or table with all datatypes 2017-11-01 17:09:58 -07:00
v-kaywon 8083c65e5c change test title in test 2017-11-01 16:46:56 -07:00
v-kaywon 2ce10aceb0 change error messages 2017-10-31 09:41:34 -07:00
v-kaywon 631f80a9af added error handling for using direct_query and emulate_prepare in a Column Encryption enabled connection 2017-10-26 13:58:38 -07:00
v-kaywon 7a496acfbe change test title in pdo_decimal_precision.phpt and sqlsrv_decimal_precision.phpt 2017-10-20 15:10:56 -07:00
v-kaywon 02e145d988 fix for right truncation error when precision of the column definition and input is not aligned 2017-10-18 18:10:30 -07:00
v-kaywon a5125dff54 undo changes in appveyor.yml 2017-10-17 16:13:42 -07:00
v-kaywon acee5c4686 detect appveyor problem 2017-10-17 14:50:33 -07:00
v-kaywon 83ca7b498b add comment do pdo_bigint_outparam.phpt and sqlsrv_bitint_outparam.phpt 2017-10-13 16:00:57 -07:00
v-kaywon b5a0d1f859 cosmetic changes 2017-10-13 15:50:50 -07:00
v-kaywon 628e04e402 fix spacing in expected output in pdo_bigint_outparam.phpt and sqlsrv_bigint_outparam.phpt 2017-10-12 12:20:30 -07:00
v-kaywon c30f2d6100 change encoding to SYSTEM when converting int to string for inout and output param 2017-10-12 11:33:45 -07:00
v-kaywon a0e886273f convert long output param to string, then convert back to long if less than max int 2017-10-11 18:03:14 -07:00
Yuki Wong edac5b2d25 Merge pull request #557 from v-kaywon/refactorPDOTests
Refactor pdo tests
2017-10-11 10:45:30 -07:00
v-kaywon 1d31afe531 change regex to use ODBC Driver 1[1-9] in pdo_warnings.phpt 2017-10-11 09:55:19 -07:00
v-kaywon 73680725d7 remove XFAIL section from pdo_prepare_emulatePrepare_decimal.phpt 2017-10-10 17:39:52 -07:00
v-kaywon c7343bd0f4 fix MsCommon_mid-refactor 2017-10-10 16:32:11 -07:00
v-kaywon c38c94c3fa updated MsCommon_mid-refactor.inc; change connect function to use ERRMODE constants 2017-10-10 16:12:04 -07:00
v-kaywon 318e5312c2 apply review changes 2017-10-10 15:56:41 -07:00
v-kaywon d10af00511 apply review changes 2017-10-10 11:34:59 -07:00
David Puglielli 31714848dc Merge pull request #560 from david-puglielli/skip-fix-connres-aad
Skip fix connres aad
2017-10-05 17:46:33 -04:00
David Puglielli 5362b2ef4f Changed skipif file names to less than 2017-10-05 13:24:46 -07:00
v-kaywon 55a02df5ba remove XFAIL section from tests 2017-10-04 16:26:50 -07:00
v-kaywon e9e19fdf4b Merge branch 'refactorPDOTests' of https://github.com/v-kaywon/msphpsql into refactorPDOTests 2017-10-04 14:38:26 -07:00
v-kaywon dd21442f5d fix typo in tests when column encryption is off 2017-10-04 14:36:47 -07:00
Yuki Wong 07b11f1b16 Merge branch 'dev' into refactorPDOTests 2017-10-04 13:38:07 -07:00
v-kaywon 944ec31f82 follow coding standard for refactored tests 2017-10-04 13:16:25 -07:00
Jenny Tam ce8d444977 Merge pull request #552 from yitam/missingDriver
Search for installed ODBC driver(s) in non-Windows env and more error handling when driver option is set
2017-10-03 15:05:49 -07:00
David Puglielli a1d613054e Merge pull request #520 from david-puglielli/nextrowset-fix
Added empty result set check to nextRowset()
2017-10-03 14:31:56 -04:00
David Puglielli 95f76757d0 Merge branch 'nextrowset-fix' of https://github.com/david-puglielli/msphpsql into nextrowset-fix 2017-10-02 13:47:29 -07:00
David Puglielli 5f243357a5 fixed line endings 2017-09-29 21:11:45 -07:00
David Puglielli 9fc7e4bf4b added skipifs to connres and aad tests 2017-09-29 21:06:05 -07:00
David Puglielli 4151f8f5d1 Minor fixes 2017-09-29 20:47:24 -07:00
David Puglielli 329fa3409e Added skipif for SQL Server 2014 2017-09-29 17:25:14 -07:00
Jenny Tam bbc2701140 Made changes as per review comments 2017-09-29 15:54:34 -07:00
David Puglielli 0728a1da5a Update pdo_empty_result_error.phpt 2017-09-29 14:52:33 -07:00
David Puglielli 494527d465 Tweaked tests, added comments per code review comments 2017-09-29 14:30:29 -07:00
Jenny Tam 302f8540c8 Merge branch 'dev' into missingDriver 2017-09-29 11:37:05 -07:00
Jenny Tam 76e628c963 resumed error handling when driver option is set and added test cases 2017-09-28 13:22:00 -07:00
Yuki Wong 61f881136a Merge pull request #550 from v-kaywon/fixPODQuoteNul
Fix PDO::quote with string containing ASCII NUL character
2017-09-28 12:23:10 -07:00
v-kaywon a5b0dbb8e4 refactored first 60 PDO functional tests 2017-09-28 09:48:08 -07:00
Jenny Tam 4bb6f4df2e changed the default odbc versions in the tests 2017-09-28 08:45:48 -07:00
Jenny Tam 135286056d modified error messages in the tests 2017-09-27 17:03:04 -07:00
Jenny Tam 5189a9eb65 removed the checks for IM002 because of DM inconsistencies 2017-09-27 16:44:51 -07:00
Jenny Tam 0cbc00384c added more error checking when driver option is set 2017-09-27 15:16:17 -07:00
Jenny Tam 144ed8c8f3 added tests for AE and odbc 13 combination 2017-09-27 10:12:25 -07:00
David Puglielli be2be4bb27 Merge remote-tracking branch 'upstream/dev' into nextrowset-fix 2017-09-26 15:04:40 -07:00
v-kaywon 5ac1c73533 add description to test 2017-09-26 11:33:56 -07:00
v-susanh 6d3ea18fed moved test descriptions to DESCRIPTION section (#554) 2017-09-25 16:37:27 -07:00
v-kaywon 57a41d71e9 fix PDO::quote api when input string contain a NUL ASCII character 2017-09-21 15:59:54 -07:00
v-kaywon 36fef13297 fix handling decimal type with no decimal with always encrypted 2017-09-19 12:48:21 -07:00
v-kaywon 263963f0ed use ae_connect 2017-09-18 15:01:19 -07:00
v-kaywon ae9ab89990 fix tests 2017-09-18 10:32:10 -07:00
Hadis-Fard 9a0442e659 Merge branch 'AlwaysEncrypted' of https://github.com/Microsoft/msphpsql into AlwaysEncrypted 2017-09-15 13:42:25 -07:00
Yuki Wong c22a528290 Merge pull request #530 from v-kaywon/AEinsertTests
add insertion tests for Always Encrypted; add common functions in MsC…
2017-09-15 10:06:49 -07:00
Hadis-Fard 80b9f9e603 fixes per review comments 2017-09-14 18:21:25 -07:00
v-kaywon b1890b818d change expected output in PDO95_Extend2 for the new DropTable function in MsCommon.inc 2017-09-14 15:56:17 -07:00
v-kaywon 8a5fc85aec fix typo in pdo_sqlsrv MsCommin.inc 2017-09-14 15:38:07 -07:00
Hadis Fard 8495cb10a6 Merge branch 'AlwaysEncrypted' into AlwaysEncrypted 2017-09-14 15:21:07 -07:00
v-kaywon ebdb18c837 iteration 2: apply review changes 2017-09-14 15:04:55 -07:00
v-kaywon 27b47665dd iteration 1: apply review changes; fix expected outputs 2017-09-14 13:24:12 -07:00
v-kaywon 8a512d8e97 fixed expected values in pdo tests 2017-09-14 11:52:17 -07:00
v-kaywon 49a5c9e461 added skipif old version to tests 2017-09-14 09:47:40 -07:00
Hadis-Fard 9175241358 added pdo test, fixed issue with missing driver 2017-09-13 19:06:28 -07:00
v-kaywon bef0e3eab7 add insertion tests for Always Encrypted; add common functions in MsCommon.inc for refactoring in the future 2017-09-13 17:46:44 -07:00
Jenny Tam 0b6565da67 escaped the periods as per review comments 2017-09-13 16:50:42 -07:00
Jenny Tam 0d4e6373a0 removed the hardcoded values for ODBC versions 2017-09-13 16:36:29 -07:00
Jenny Tam 834402ba8d added skipif_not_ksp file as per review comment 2017-09-11 16:07:40 -07:00
Jenny Tam 99fa9c66dd skip KSP tests if the flag in MsSetup is not set 2017-09-08 12:05:10 -07:00
Jenny Tam 696a1fb722 added two new variables to enable AE testing 2017-09-08 11:59:08 -07:00
David Puglielli f4117a88d4 Added PHPT test 2017-09-07 19:27:45 -07:00
Jenny Tam 2143a9659b renamed skipf and used AEQualified method instead 2017-09-07 11:21:21 -07:00
Jenny Tam 2554d4976c used skipif_server_old for ksp tests 2017-09-01 16:10:44 -07:00
Jenny Tam f21e790250 added two new tests to retrieve encrypted data 2017-09-01 16:10:44 -07:00
Jenny Tam d62d434cd0 modified skipif and code based on review 2017-09-01 16:10:44 -07:00
Jenny Tam 652087d06b modified the tests to also check sql server version 2017-09-01 16:10:44 -07:00
Jenny Tam babaae71e9 added 2 more columns to ksp test table 2017-09-01 16:10:44 -07:00
Jenny Tam bfd01a2bc2 added two more tests for KSP 2017-09-01 16:10:43 -07:00
Jenny Tam 1ccb1c7013 reverted docker file and removed the commented out block in the test 2017-09-01 16:10:43 -07:00
Jenny Tam 0441af291c added checks for server version in the tests 2017-09-01 16:10:43 -07:00
Jenny Tam f8d87cd268 modified the KSP include files 2017-09-01 16:10:42 -07:00
Jenny Tam 1e4366242a modified a failing pdo test 2017-09-01 16:10:42 -07:00
Jenny Tam 8c749e981b added tests for basic error handling 2017-09-01 16:10:42 -07:00
v-kaywon 7a0ea56c78 change odbc version back to 13 2017-09-01 16:10:41 -07:00
v-kaywon bf7e4d80f6 reply reviews from Jenny 2017-09-01 16:10:40 -07:00
v-kaywon baf73565b4 fix ae setup test 2017-09-01 16:10:40 -07:00
v-kaywon 7b390493d1 added ae keys setup test for pdo 2017-09-01 16:10:40 -07:00
v-kaywon f744b7e515 merge ae code 2017-09-01 16:10:40 -07:00
David Puglielli 8a9d2d66fc Tests fixed to use temp tables 2017-07-20 17:07:02 -07:00
David Puglielli c1e7280dc6 Version updated 2017-07-20 11:44:46 -07:00
David Puglielli 4dc7464be4 Tests fixed 2017-07-19 16:08:20 -07:00
David Puglielli 1904877d8c Tests fixed 2017-07-19 15:55:57 -07:00
David Puglielli 9d86b861b9 Tests fixed 2017-07-19 15:13:23 -07:00
David Puglielli 9817f4d598 Tests fixed, version updated 2017-07-19 14:43:28 -07:00
David Puglielli ca4a2d9b7d changed line endings 2017-07-19 14:10:53 -07:00
David Puglielli a1dd674c44 Tests added 2017-07-19 14:08:48 -07:00
ulvii f25f844719 Modifying UNIX connection pooling tests to not require root permissions (#471)
* Editing unix connection pooling tests to not requiere root permissions

* Fix type in sqlsrv_ConnPool_Unix.phpt

* Fix type in PDO_ConnPool_Unix.phpt
2017-07-12 12:57:43 -05:00
yitam 465a72352f modified the comments based on review 2017-06-28 09:48:33 -07:00
yitam c1747ef572 daasMode = false by default 2017-06-27 15:46:08 -07:00
yitam e7f00c1fed modified the comments for the passwords tests 2017-06-27 15:03:04 -07:00
yitam 6e8111418d resiliency tests and skip azure condition 2017-06-27 14:20:53 -07:00
yitam 49ba138797 set placeholders for daasMode 2017-06-27 13:34:27 -07:00
yitam 44dbd78c92 fixed connection resiliency tests 2017-06-27 13:17:31 -07:00
yitam e535e85d1f modified tests for Azure testing 2017-06-27 13:00:07 -07:00
yitam 6c0be02618 rearrange test folders as functional 2017-06-23 13:09:37 -07:00