Commit graph

594 commits

Author SHA1 Message Date
v-kaywon 7256685a4c workaround for unixODBC bug returning error when pdo::exec query with empty result set 2017-03-27 17:49:01 -07:00
ulvii d0aed143dc Clear Cache before next results set
We need to clear cache if a statement has multiple rowsets.
2017-03-27 15:24:41 -07:00
ulvii 6809f0f7ea Workaround for a bug in unixODBC 2.3.4 (#334)
* Adding a workaround for the error handling issue with unixODBC 2.3.4 when conneciton pooling is enabled

* Adding a check to apply the workaround only to PDO SQLSRV

* Update core_util.cpp

* Unix Conn Pool test

* Modifying the test to use autonomous_setup.php

* Updating path to isPooled.php
2017-03-27 14:07:43 -07:00
ulvii b883ee47e4 Update core_stmt.cpp 2017-03-27 12:58:42 -07:00
ulvii 80b510ef2f removing tabs 2017-03-27 12:57:18 -07:00
ulvii f835c34319 Update core_stmt.cpp 2017-03-24 17:12:10 -07:00
ulvii 48e9914986 Update spaces 2017-03-24 17:03:24 -07:00
ulvii 4339bad694 Update identation 2017-03-24 16:01:45 -07:00
ulvii 27bae233c0 Update identation 2017-03-24 15:53:41 -07:00
ulvii 5e42b191ea Implementing new cache to remove unnecessary ODBC calls 2017-03-24 15:46:53 -07:00
v-kaywon bd8d1e1bf4 Merge pull request #337 from v-kaywon/string_warning
convert const char[] to char[] to avoid conversion warnings
2017-03-23 12:30:30 -07:00
v-kaywon 9f3c0cee54 Update init.cpp 2017-03-23 11:55:33 -07:00
v-kaywon b4f7684db3 Update init.cpp
fix indentation
2017-03-23 10:57:35 -07:00
v-kaywon d68300ff53 Update core_results.cpp 2017-03-23 10:52:02 -07:00
v-kaywon 6b2aa39e19 convert const char[] to char[] to avoid conversion warnings 2017-03-23 10:21:48 -07:00
v-kaywon ccd80a32d9 Update util.cpp 2017-03-21 17:00:13 -07:00
v-kaywon 06a343f611 rename stmt_option_scrollable to driver specific names and put get_error_message into namespace 2017-03-21 15:28:13 -07:00
v-kaywon c1a1a06061 fix crash from getting the numrow of a null buffered result set; add test 2017-03-20 15:58:57 -07:00
v-kaywon c9492ae487 fix memory leak caused by pecalloced persistent connection; fix test indentation 2017-03-17 16:46:02 -07:00
v-kaywon b701fab642 implement throwing exception when ATTR_PERSISTENT is in the connection options; added tests 2017-03-13 17:54:58 -07:00
Hadis Kakanejadi Fard 91f27c0958 updated PECL package version 2017-03-07 11:13:53 -08:00
ulvii 9d7a79270b Merge pull request #314 from yitam/locale
changed locale for mac
2017-03-06 10:12:00 -08:00
yitam d6f6bc847b changed locale for mac 2017-03-03 17:54:42 -08:00
Hadis Kakanejadi Fard 0782c56b41 updated versioning to semantic versioning #282 2017-03-03 16:55:28 -08:00
yitam 161ccacddb String release first 2017-02-28 15:27:13 -08:00
yitam 9c2cfe4610 String release first 2017-02-28 13:26:50 -08:00
yitam ee1fcb83d5 Use a simpler way 2017-02-28 13:20:57 -08:00
yitam 357bc95c1e Fix spacing 2017-02-28 10:08:46 -08:00
yitam 26c5f1785f Issue #308 2017-02-28 10:04:59 -08:00
v-dareck 8e22e4ca17 Fix memory leaks in buffered resultsets. 2017-02-24 13:29:09 -08:00
Jenny Tam e854a9ca53 Merge pull request #296 from v-dareck/remove_uchar
Remove uchar.h
2017-02-23 13:27:49 -08:00
Jenny Tam 12e6535a7f Merge pull request #297 from Hadis-Fard/dev
issue #270 fix
2017-02-22 14:18:56 -08:00
v-dareck 7f89d82889 Change errno check to ERROR_SUCCESS 2017-02-22 11:51:31 -08:00
v-dareck 043d1ece8d Modify string_to_number utf8 conversion. 2017-02-21 18:47:53 -08:00
Hadis Kakanejadi Fard 67c4a0a9de fixed issue #270 2017-02-21 15:14:02 -08:00
yitam f7a1c7296b use static cast for SQLSRV_ENCODING 2017-02-21 13:20:50 -08:00
yitam 8dc946d3f0 Merge branch 'dev' of https://github.com/Microsoft/msphpsql into GH231 2017-02-21 13:16:04 -08:00
Jenny Tam e448281049 Merge pull request #295 from v-kaywon/PHP71DebugAbort
fix PHP7.1 debug abort error
2017-02-21 12:54:24 -08:00
v-kaywon f5b9bd93f0 fix PHP7.1 debug abort error 2017-02-21 12:02:16 -08:00
v-dareck 5951e32886 Remove uchar.h usage from buffered results. 2017-02-20 18:11:27 -08:00
yitam 0705d9b1a8 calculate field size instead of using column size and fixed the parameter encoding 2017-02-20 15:24:41 -08:00
Jenny Tam cc925ad9b3 Merge pull request #292 from v-dareck/bindparam_out_string_fault
Add check for SQL_NO_TOTAL for SQLBindParameter out parameter
2017-02-20 07:49:17 -08:00
v-dareck 98fd299a31 Add check for SQL_NO_TOTAL for SQLBindParameter out parameter. 2017-02-16 11:50:24 -08:00
v-dareck c35d998942 Fix clang compile errors. 2017-02-14 16:52:42 -08:00
yitam 471da9b005 Fix issue #35 2017-02-10 13:21:53 -08:00
yitam 9b035cce6f fix formatting 2017-02-10 10:22:16 -08:00
yitam 27d35af223 Fix and tests for issue #69 2017-02-10 09:51:51 -08:00
Jenny Tam e363a44cf5 Merge pull request #281 from v-dareck/github267_closeCursor
Github #267 close cursor error
2017-02-10 08:04:48 -08:00
v-dareck fc8433ac83 Fix error message in close cursor. Change prepare to query in test. 2017-02-09 16:41:39 -08:00
David Puglielli 15c0573e76 Merge pull request #279 from yitam/sql_guid
define SQL_GUID for PECL packages
2017-02-09 15:25:27 -08:00
yitam 23510b21f1 Fix for issue 223 2017-02-09 10:44:33 -08:00
v-dareck 690571d41d Change tab to spaces. 2017-02-08 17:16:02 -08:00
v-dareck 887857eaf2 In closeCursor check if statement has been executed before moving to next result. 2017-02-08 16:38:12 -08:00
yitam 8df3d00f02 check if constant defined first 2017-02-08 14:28:04 -08:00
yitam 8bb8dfe399 define SQL_GUID for PECL 2017-02-06 16:55:39 -08:00
Jenny Tam 695dd19aff Merge pull request #271 from v-dareck/ReadmeUpdate
Readme and Changelog update
2017-02-03 11:59:20 -08:00
yitam e7f4165f0b corrected comment 2017-02-02 14:25:09 -08:00
yitam 010d23f7a1 removed inconsistent code calling convert_string_from_utf16 2017-02-02 14:20:50 -08:00
v-dareck 75191e84fc Update version.h 2017-02-02 14:16:21 -08:00
v-dareck 1f9d1583d1 replace __linux__ with _WIN32 define. 2017-02-01 17:36:41 -08:00
v-dareck 044836b048 Tab/indentation fixes. 2017-02-01 16:55:05 -08:00
v-dareck ea445f4a18 Merge remote-tracking branch 'Microsoft/merged-codebase' into merged-codebase 2017-02-01 16:49:30 -08:00
yitam 3280d76682 modified ifdef __linux__ 2017-02-01 12:41:13 -08:00
v-dareck fa4c0e8c4c Merge remaining PHP-7.0-Linux changes into merged codebase. 2017-01-31 18:10:37 -08:00
Jenny Tam 263622fac1 Merge pull request #265 from v-dareck/PHP-7.0
Merge latest PHP-7.0 branch changes to merged-codebase
2017-01-31 16:34:53 -08:00
Jenny Tam 1fe9c605d1 Merge pull request #256 from v-dareck/github37_has_rows
Github 37 sqlsrv_has_rows
2017-01-30 16:29:24 -08:00
Hadis Kakanejadi Fard d2d3d32be3 removed unused sqlsrv_zend_hash_add 2017-01-30 13:29:26 -08:00
Hadis Kakanejadi Fard 66fa134f17 fixed get_processor_arch comparisons 2017-01-30 13:11:11 -08:00
Hadis Kakanejadi Fard 1fc3243eb5 added packagize.sh 2017-01-30 13:07:34 -08:00
Hadis Kakanejadi Fard 0e70a95d63 applied peer review comments 2017-01-30 13:05:38 -08:00
Hadis Kakanejadi Fard 64e08eb1a0 Merge branch 'merged-codebase' of https://github.com/Microsoft/msphpsql into merged-codebase 2017-01-30 09:43:55 -08:00
Hadis Kakanejadi Fard 832102be17 removed comments 2017-01-27 17:46:58 -08:00
Hadis Kakanejadi Fard 1ebf507b9f updated renamed header 2017-01-27 17:09:47 -08:00
Hadis Kakanejadi Fard a7d95b7a5f fixed invalid user pass issue in core_conn 2017-01-27 15:27:44 -08:00
Hadis Kakanejadi Fard 0fb418a1f8 edited included headers 2017-01-27 15:10:37 -08:00
yitam 0bd7169b03 safeguard get_col_meta 2017-01-27 15:05:09 -08:00
Hadis Kakanejadi Fard aec47fcf9f renamed <intsafe> in xplat.h to xplat_intsafe 2017-01-27 14:26:34 -08:00
Hadis Kakanejadi Fard 480df47625 renamed header files with the same name as windows headers 2017-01-27 13:42:10 -08:00
Hadis Kakanejadi Fard a647013e93 Merge branch 'merged-codebase' of https://github.com/Microsoft/msphpsql into merged-codebase 2017-01-27 10:30:02 -08:00
Hadis Kakanejadi Fard 9c27732fbb fixed core_conn 2017-01-26 18:21:15 -08:00
David Puglielli 7b9adee14e Added build directory 2017-01-26 17:58:11 -08:00
David Puglielli dcbd35709b Added config.m4 2017-01-26 17:54:55 -08:00
Hadis Kakanejadi Fard 9ec0b25774 Merge branch 'merged-codebase' of https://github.com/Microsoft/msphpsql into merged-codebase 2017-01-26 17:30:13 -08:00
Hadis Kakanejadi Fard 52802e3f46 updated version to 4.1 2017-01-26 17:27:45 -08:00
Hadis Kakanejadi Fard 8e24758564 updated to version 4.1 2017-01-26 17:27:12 -08:00
Hadis Kakanejadi Fard 92ca301433 Merge pull request #243 from david-puglielli/merged-codebase
Merged Windows and Linux PDO_SQLSRV specific files
2017-01-26 17:25:01 -08:00
Hadis Kakanejadi Fard a08d4c4055 bumped up the version to 4.1 2017-01-26 17:17:12 -08:00
Hadis Kakanejadi Fard decb9c5cde bumped up the version to 4.1 2017-01-26 17:14:14 -08:00
Hadis Kakanejadi Fard 9dcef967fb bumped version to 4.1 2017-01-26 17:13:29 -08:00
Hadis Kakanejadi Fard 431a9af8a8 fixed L166 indentations 2017-01-26 17:12:11 -08:00
Hadis Kakanejadi Fard 56f1029acf made the ifdef consitent 2017-01-26 17:06:17 -08:00
Hadis Kakanejadi Fard 2bcf972731 bumped version to windows version 2017-01-26 15:16:03 -08:00
Hadis Kakanejadi Fard 29931a8546 fixed indentations 2017-01-26 15:14:30 -08:00
Hadis Kakanejadi Fard f42824d390 fixed indentations 2017-01-26 15:05:30 -08:00
Hadis Kakanejadi Fard 33f5fce36e fixed indentations in updated code 2017-01-26 14:59:23 -08:00
Hadis Kakanejadi Fard b8a162fa18 fixed indentations on rowCount 2017-01-26 14:43:15 -08:00
Hadis Kakanejadi Fard f3656481d5 fixed indentations on core_results 2017-01-26 14:37:34 -08:00
Hadis Kakanejadi Fard b46c3fa018 fixed indentations and spacing 2017-01-26 14:26:42 -08:00
Hadis Kakanejadi Fard 4f05da0b3f fixed included headers order 2017-01-26 13:54:02 -08:00
David Puglielli c08094317a Update pdo_parser.cpp 2017-01-25 17:21:10 -08:00
David Puglielli 7c69017257 Update pdo_init.cpp 2017-01-25 17:19:50 -08:00
David Puglielli 921d2c94b0 Update pdo_stmt.cpp 2017-01-25 17:12:20 -08:00
David Puglielli 4d8288a76c Update pdo_dbh.cpp 2017-01-25 17:11:31 -08:00
Hadis Kakanejadi Fard 3bd848d58a gaurded strsafe header 2017-01-25 14:05:08 -08:00
v-dareck 75aa64ec18 Issue 37. sqlsrv_has_rows does not fetch if already true.
Change sqlsrv_has_rows to not scroll if already true
when using forward only cursor.
2017-01-25 13:55:55 -08:00
v-dareck 69a744d808 Issue 228. Don't allow 0 for sqlsrv ClientBufferMaxKBSize.
Add new tests for sqlsrv and pdo.
2017-01-25 13:37:48 -08:00
Hadis Kakanejadi Fard 2bd81f9e54 removed header files included in core_sqlv from xplat 2017-01-25 11:25:12 -08:00
Hadis Kakanejadi Fard 6031111634 removed windows header 2017-01-25 10:57:00 -08:00
Hadis Kakanejadi Fard 9714d94cd5 added Linux specific files 2017-01-25 10:49:09 -08:00
Hadis Kakanejadi Fard 7ff6b40fc0 added Linux specific files 2017-01-25 10:45:54 -08:00
Hadis Kakanejadi Fard e49113b336 merged core_results 2017-01-24 17:19:18 -08:00
Hadis Kakanejadi Fard 336590052d merged core_stream 2017-01-24 17:18:20 -08:00
Hadis Kakanejadi Fard 3afe7fe883 merged core_sqlsrv.h 2017-01-23 17:22:15 -08:00
David Puglielli 37fe9a0307 Commented code removed 2017-01-23 11:26:16 -08:00
David Puglielli 8ea93d6185 Capitalised win32 2017-01-23 11:25:03 -08:00
yitam 1b38d24b0f config.m4 2017-01-20 15:20:32 -08:00
Hadis Kakanejadi Fard 08c9ca87e1 merged conversion functions in core_sqlsrv and core_util 2017-01-20 15:14:46 -08:00
Hadis Kakanejadi Fard cb88f51e16 merged core_stmt from Linux 2017-01-20 14:43:49 -08:00
yitam d60d8f7528 fixed preprocessor directives 2017-01-20 10:24:22 -08:00
David Puglielli 1a4176d624 Commented code removed 2017-01-19 17:05:34 -08:00
David Puglielli def3ae8375 Spacing fixes 2017-01-19 17:01:58 -08:00
David Puglielli e785329f16 Small ifdef fix 2017-01-19 16:38:40 -08:00
Hadis Kakanejadi Fard 69ffa8a952 updated core_init 2017-01-19 16:38:32 -08:00
yitam 76a6a2da94 fixed indentations 2017-01-19 15:08:39 -08:00
Hadis Kakanejadi Fard 07ea1d362e updated to version 4.1.5 2017-01-19 15:07:53 -08:00
yitam a60184f187 modified based on reviews 2017-01-19 14:43:00 -08:00
Hadis Kakanejadi Fard 0d3b475277 merged core_conn from linux to Windows 2017-01-19 13:00:41 -08:00
David Puglielli aaa3203e55 Merged Linux and Windows PDO_SQLSRV code 2017-01-19 11:53:21 -08:00
yitam 0860f7086d merged Linux to php_sqlsrv.h 2017-01-19 11:05:51 -08:00
yitam 00a2a836f6 merged Linux to CPP files 2017-01-19 08:17:45 -08:00
Hadis Kakanejadi Fard 6d8339a32c revert core_results to 365220a 2017-01-17 16:55:09 -08:00
Hadis Kakanejadi Fard c45853a74c fixed indentations 2017-01-17 14:19:45 -08:00
Hadis Kakanejadi Fard 11e29c0ff6 fix #173, #138 on Windows code 2017-01-17 14:17:57 -08:00
yitam 365220a562 fixed the limit for row count 2017-01-16 16:16:55 -08:00
Hadis Kakanejadi Fard 73cd9c80c5 moved templates to driver folder 2017-01-13 13:22:37 -08:00
Hadis Kakanejadi Fard 90e9e31b92 fixed indentations 2017-01-12 13:45:12 -08:00
Hadis Kakanejadi Fard c9b85d9908 fixed indentations 2017-01-12 13:44:46 -08:00
Hadis Kakanejadi Fard 80783a5a83 changed tab to spaces 2017-01-12 13:32:43 -08:00
Hadis Kakanejadi Fard f59274536a Merge branch 'PHP-7.0' of https://github.com/Microsoft/msphpsql into HEAD 2017-01-12 13:14:20 -08:00
Hadis Kakanejadi Fard 0762fa3353 deleted shared folder inside pdo 2017-01-09 15:36:38 -08:00
Hadis Kakanejadi Fard 86dd9ef420 updated sqlsrv and pdo_sqlsrv config.w32 to get the dir name dynamically 2017-01-09 15:10:04 -08:00
Hadis-Fard 4fb02c3533 added pdo shared folder 2017-01-03 11:25:39 -08:00
Hadis-Fard 8ebae46525 Updated pdo driver source code path 2017-01-03 11:23:01 -08:00
Hadis-Fard 4c42a9ad6a updated the code structure 2016-12-20 16:00:53 -08:00