Commit Graph

8 Commits

Author SHA1 Message Date
Chaitanya Dandugula
85eddf7402 Replaced the header tag
// Library: Data

with

// Library: SQL
2018-12-20 14:01:45 +05:30
Erbengi
759b4dd164 Merge bugfix #2546 from poco-1.9.1 (#2548)
* Merge bugfix #2546 from poco-1.9.1

* Fixed ODBC SessionImpl

* Fixed missing methods in PostresSQL and testsuit

* Fixed missing method in SQLite SessionImpl

* Use mysql_refresh() instead of mysql_reset_connection()

* Use mysql_reset_connection() if it is available

Use mysql_reset_connection() only if MySQL version is >= 5.7 or MariaDB
version is >= 3.0.0 otherwise fall back to myslq_refresh()
2018-11-27 08:29:40 -06:00
Aleksmia
e60ece37d4 Feature PosgreSQL copy in (#2529)
* Added unit-test for testing support COPY FROM feature of PostgreSQL

Test try execute simple usage of COPY FROM with batch of data such as std::vector<int>

* Made main logic of feature COPY IN for SQL/PostgreSQL

* Added bulk binding for general types.
* Added support of bulk bindings for user types. For supporting this feature user needs implement
yet another TypeHandler<> for std::vector<T> which contains pointer to SQL::PostgreSQL::Binder in
params instead of SQL::Binder.
* Added yet another test-case for testing usage COPY IN with user types.

Other functionality need implement by developing COPY OUT feature.

* Check with a large number of objects

* Added tests for complex inserting thru std::list<> and std::deque<> by COPY IN mode

* Made feature COPY IN for batches of data like std::list<> and std::deque<>

* Changed spaces to tabs and was a little refactoring

* Fix new line in for-loops
2018-11-27 08:20:29 -06:00
Lyashenko Arsenii Maksimovich
223ce277bd Fix "redeclared without dllimport attribute..." warning for MinGW (#2433)
* Fix "redeclared without dllimport attribute..." warning for MinGW

* Use 'POCO_COMPILER_MSVC' instead of '_MSC_VER'.

* Define 'POCO_COMPILER_MINGW' with 'POCO_COMPILER_GCC' too

* Define 'POCO_UNUSED' for Clang too
2018-09-17 20:36:21 +02:00
Lyashenko Arsenii Maksimovich
0379a1e768 MinGW support (#2360)
* Add MinGW support (not full yet).

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Fix SQLs compilation (No rule to make target '${LIBNAME}.dll.a', needed by '${LIBNAME}.dll'.  Stop.)
* Fix crypto executables compilation
* Test static compilation
* Test MSVC compilation
* Add unicode support

See pocoproject/poco#2356

* Code rearrange.

Also fix PDF test runner.

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Add unicode support
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Normal "_DLL" definition for MinGW. Add missing "Crypto_API" for several implementations. Add "POCO_NO_MINGW_UNICODE" for "wmain".

TODO list:
* Check PostgreSQL and MySQL
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Test PostgreSQL. Fix message compiler problem.

See pocoproject/poco#2356

* Perform requested changes. Add WinCE check.

See pocoproject/poco#2360

* Perform requested changes #2. Delete WinCE check.

See pocoproject/poco#2360

* Perform requested changes #3. Net initializer should works now.

See pocoproject/poco#2360

* Fix invalid indent.

See pocoproject/poco#2360

* Correct definition of POCO_NO_MINGW_UNICODE.

See pocoproject/poco#2360

* Remove macro and set global linke flags for testing purpose

* Add -municode for mingw where wmain is used

* Delete "POCO_ENABLE_EXE_WMAIN". Add PollSet support.

See pocoproject/poco#2360

* Restore WinCE linker flags. Set _WIN32_WINNT in PollSet.cpp separately. Add var to disable MinGW wmain wrapper.

* Fix compilation.

* Fix missing argument name in functions "setEscapeUnicode" in JSON package.
2018-06-19 08:17:03 -07:00
Marian Krivoš
42ef846651 Fix Visual Studio warnings at level /W4 (#2312)
* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp

* fixexes for Visual Studio and /W4 switch

* Fixed warnings for Foundation module

* Fixed warnings for JSON module

* Fixed warnings for XML module

* Fixed warnings for NET module

* Fix unfixable warning in VarHolder.h

* Fix Typo:

* Fixes for Net

* Fixes for Crypto

* Fixes for NetSSL

* Fixes for Zip

* Fixes for PDF

* Fixes for SQLite

* Fixes for SQLite

* Fixes for SQL

* Fixes for MongoDB

* Fixes for Redis

* Fixes for CppParser

* Fixes for CppUnit

* Fixes for PageCompiler

* Fixes for PostgreSQL

* Fixes for MySQL

* Fixes for SevenZip

* Last Warnings

* Fixes for ODBC

* fix std::type_info include
2018-05-04 08:47:40 -06:00
Alex Fabijanic
8f62a2f725 postgres windows fixes 2018-01-18 13:57:07 -06:00
Aleksandar Fabijanic
b49ac67225 Data2sql (#2070)
* remove leftover progen files

* remove Data sources and turn headers into forwards

* add SQL files #2059

* Data2sql: adjust Travis, AppVeyor & Makefiles (#2069)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* fix header forwarding

* Data2sql: Fixes for complete Travis CI success (#2071)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Restore DataFormatException

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* construct RowFilter from RecordSet reference instead of pointer

* pass Container ref instead of ptr to Column

* elimitate g++ warnings

* SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate

* tidy up Postgres

* ODBC fixes
2018-01-18 11:29:28 -06:00