Commit Graph

387 Commits

Author SHA1 Message Date
Mickaël Rémond
3764fd1d7f Merge pull request #2 from alexeyr/master
Merge upstream fixes
2017-01-23 12:16:48 +01:00
Alexey Romanov
7cf50f8589 Merge pull request #46 from aantonyan/master
Fixed compile warning
2016-05-10 13:03:04 +04:00
Aram Antonyan
b054133c87 Fixed compile warning
When you compile project it returns following warning:

> c_src/sqlite3_drv.c: In function ‘exec_async_command’:
> c_src/sqlite3_drv.c:459:7: warning: too many arguments for format
> [-Wformat-extra-args]
         LOG_ERROR("driver_async call failed", 0);

This patch fixes mentioned warning.
2016-05-09 18:19:53 +00:00
Alexey Romanov
0988371a69 Merge pull request #45 from mrcsparker/mac_hash_fix
Mac OS X hash.c issue
2016-02-22 23:34:41 +03:00
Chris Parker
003aa8a31a Fixed issue #42
Mac OS X hash.c issue.
2016-02-22 01:03:40 -06:00
Mickael Remond
6ee3570060 Metadata ready for hex.pm release 2016-01-22 17:24:32 +01:00
Mickael Remond
4b5936e418 Metadata for Hex.pm 2016-01-22 17:03:50 +01:00
Alexey Romanov
cbc3505f7a Use binary:replace instead of re:replace to handle Latin-1 binaries
Fixes #43
2015-12-21 15:21:02 +03:00
Alexey Romanov
8350dc6038 Merge pull request #40 from NineFX/fix-osx
Fix OS X
2015-08-09 20:59:42 +03:00
Drew Varner
4699529530 Fix OS X
This is my second/better attempt at fixing the OS X build. This build
explicitly includes the sqlite3 amalgamation files. sqlite shipped on
OS X is old. It doesn't support extensions. This change allows users to
build erlang-sqlite3 on OS X and pass tests.
2015-08-09 12:04:30 -04:00
Alexey Romanov
da7efb50f4 Merge pull request #39 from NineFX/add-17dot4-support
Add 17.4 support
2015-08-09 17:34:43 +03:00
Drew Varner
0fe21c9039 Add 17.4 support
Erlang 17.4 added a new driver entry, `emergency_close`. This
patch tests for it by driver versions and adds an initializer if
necessary. This patch also adds new Erlang versions to the Travis CI config
to test the new driver field.
2015-08-09 10:19:38 -04:00
Alexey Romanov
8166e79762 Merge pull request #37 from NineFX/bump-amalgation
Bump SQLite amalgation
2015-08-06 07:26:10 +03:00
Drew Varner
4402da976f Bump SQLite amalgation
Updates the amalgation to the latest version.
2015-08-05 22:23:13 -04:00
Alexey Romanov
d8601fe5cf Merge pull request #36 from NineFX/remove-unused-variable
Remove unused variable
2015-07-25 20:08:48 +03:00
Drew Varner
7a4fbf6f04 Remove unused variable
Remove unused variable `ExpectedTableInfo` in `test/sqlite3_test.erl`.
2015-07-25 12:58:41 -04:00
Alexey Romanov
d1e38b1b36 Merge pull request #35 from NineFX/add-missing-export
Add missing export
2015-07-25 19:54:25 +03:00
Drew Varner
c73b77420c Add missing export
Export `sqlite3:changes/2`
2015-07-25 11:29:46 -04:00
Alexey Romanov
7a410a9255 Merge pull request #34 from NineFX/brew-fix
Fix OS X compilation
2015-07-24 21:08:52 +03:00
Drew Varner
e408b6bd05 Fix OS X compilation
This causes the port driver to use the `brew` version of SQLite on OS X
(darwin). This version is more up-to-date an includes functionality like
loading extensions.
2015-07-23 16:07:40 -04:00
Alexey Romanov
4ce6211e10 Merge pull request #33 from saa/saa-add_changes_fun
Add get changes
2015-03-16 00:05:03 +03:00
Sergey Abramyan
84cd542eb0 Add get changes 2015-03-15 23:51:33 +03:00
Alexey Romanov
32149a35ad Add fallback for constraint parsing 2015-03-02 10:27:47 +03:00
Alexey Romanov
a4f1d990a0 Improved initial connection check 2014-10-23 00:06:22 +04:00
Alexey Romanov
174d3cbe8f Version bump 2014-10-18 18:12:23 +04:00
Alexey Romanov
208eb16cc7 Revert "Removed unneeded sqlite3_threadsafe() check"
This reverts commit 2258c7bb73.

Conflicts:
	c_src/sqlite3_drv.c
2014-10-18 18:09:00 +04:00
Alexey Romanov
c4aabf253f Updated rebar 2014-10-18 09:15:01 +04:00
Alexey Romanov
34d060b817 More organized .gitignore 2014-10-18 09:14:48 +04:00
Alexey Romanov
9a5bd3b86b Version bump 2014-10-17 23:46:20 +04:00
Alexey Romanov
ef7f1a91ad Get rid of a warning on Windows 2014-10-17 23:43:04 +04:00
Alexey Romanov
16ddd2cd03 Ignore non-negative driver_async return values 2014-10-17 23:41:16 +04:00
Alexey Romanov
7e33050475 Comment fixed 2014-10-17 23:41:16 +04:00
Alexey Romanov
2258c7bb73 Removed unneeded sqlite3_threadsafe() check
Since the database is accessed from 1 thread only
thanks to `key` parameter of `driver_async`.
In fact we could previously potentially access the
same DB twice from different emulator threads
precisely when SQLite3 is compiled in single-thread
mode.
2014-10-17 23:41:15 +04:00
Alexey Romanov
87b88eb1c4 Allow driver instances to use different threads 2014-10-17 23:40:45 +04:00
Alexey Romanov
5336f2f9c8 Extracted common code 2014-10-17 00:49:55 +04:00
Alexey Romanov
fbc5d9c44d Fixed VC compiler warnings 2014-10-17 00:49:54 +04:00
Alexey Romanov
64b3f9a943 Version bump to 1.1.3 2014-10-13 10:19:36 +04:00
Alexey Romanov
35554f7cb1 Store DB name in driver 2014-10-13 10:19:08 +04:00
Alexey Romanov
93b50dc058 Support SQLite versions without sqlite3_db_filename 2014-10-13 10:04:17 +04:00
Alexey Romanov
128972b503 Log failure to close into log file as well as stderr 2014-10-13 09:55:10 +04:00
Alexey Romanov
47ef78b5ed Formatting 2014-10-13 09:53:14 +04:00
Alexey Romanov
a362be76cd Removed unused function 2014-10-13 09:11:34 +04:00
Alexey Romanov
6362aeaeef Travis now has Erlang 17.3 2014-10-12 21:37:09 +04:00
Alexey Romanov
d0701903aa Use single codebase for all Erlang versions 2014-10-12 21:35:15 +04:00
Alexey Romanov
ed2ae9d2a9 Version bump to 1.1.2 2014-10-12 20:48:55 +04:00
Alexey Romanov
ef325f5cee Removed a no-op when closing DB 2014-10-12 20:47:38 +04:00
Alexey Romanov
cc348bb7cc Removed false message during tests 2014-10-12 20:41:41 +04:00
Alexey Romanov
1a6f233159 Improved logging 2014-10-12 20:32:56 +04:00
Alexey Romanov
b3856c745f Log into correct temp directory 2014-10-12 19:52:37 +04:00
Alexey Romanov
d166e24359 Finalize unfinalized statements 2014-10-12 18:21:20 +04:00