Commit Graph

408 Commits

Author SHA1 Message Date
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
Alexey Romanov
92daa9db89 Verify DB is actually closed (in tests it isn't!) 2014-10-12 17:21:34 +04:00
Alexey Romanov
a8f15a4415 Version bump to 1.1.1 2014-10-11 14:09:42 +04:00
Alexey Romanov
0c767673b6 Fixed memory leak 2014-10-11 14:07:58 +04:00
Alexey Romanov
56468292d5 Simplify building on Windows
Include SQLite3 3.8.6 code to avoid having to
download binaries, remove hard-coded paths,
improve documentation.
2014-10-11 13:45:05 +04:00
Alexey Romanov
99e7a2188a Added details about building on Windows 2014-10-11 01:48:14 +04:00
Alexey Romanov
e4e3bb40f2 Ignore warning in erl_interface on 64-bit Windows 2014-10-11 01:24:55 +04:00
Alexey Romanov
c1a2abc3c8 Fix driver name 2014-10-11 00:23:39 +04:00
Alexey Romanov
1db6c42310 -Wstrict-prototypes is recommended in erl_driver docs 2014-10-11 00:19:22 +04:00
Alexey Romanov
78ac8991eb Fix warnings on Windows 2014-10-11 00:17:24 +04:00
Alexey Romanov
233a2c1559 Simplify appending to a dataset 2014-10-10 23:09:29 +04:00
Alexey Romanov
ea9fa6093a Add macro to extend dataset size 2014-10-10 15:55:49 +04:00
Alexey Romanov
0f754839ae Change version number to 1.1.0 2014-10-10 13:00:43 +04:00
Alexey Romanov
79ea77d999 Add test for #23 2014-10-10 12:25:08 +04:00
Alexey Romanov
96c34117df Fix a wrong allocation size 2014-10-10 12:06:20 +04:00
Alexey Romanov
d6fad111c6 Add esqlite mention to README.md 2014-10-10 11:44:50 +04:00
Alexey Romanov
45a1b22b41 Fix statement finalization in scripts (#24) 2014-10-10 11:35:48 +04:00
Alexey Romanov
d125bcba07 Allow raw constraints for tables as well 2014-10-10 10:35:31 +04:00
Alexey Romanov
9b9448dcdd Merge remote-tracking branch 'stentroad/custom' 2014-10-10 10:28:39 +04:00
Alexey Romanov
c5671f996e Build status added to README 2014-10-10 00:55:33 +04:00
Alexey Romanov
8951767a09 Another Windows makefile fix 2014-10-10 00:49:03 +04:00
Alexey Romanov
e7d0f9c221 Changed supported Erlang versions 2014-10-10 00:40:06 +04:00
Alexey Romanov
8673f2db6b Merge branch 'master' of github.com:dnet/erlang-sqlite3 into dnet-master
Conflicts:
	c_src/sqlite3_drv.c
2014-10-10 00:36:56 +04:00
Alexey Romanov
5b9b1b94a9 Call make test and add OTP versions in Travis 2014-10-10 00:12:35 +04:00
Alexey Romanov
20bd5fe5d0 Slight improvement to Windows build 2014-10-10 00:10:09 +04:00
Alexey Romanov
54048aae5b Define ERLANG_SQLITE3_LOAD_EXTENSION by default
Fixes #30
2014-10-09 23:56:13 +04:00
Alexey Romanov
475096d698 Add Travis-CI 2014-10-09 23:18:09 +04:00
Alexey Romanov
58fe094fb3 Merge pull request #32 from dmzmk/master
Few memory leaks were fixed.
2014-10-08 19:12:28 +04:00
Dmitriy Mazurin
d237e42735 Few memory leaks were fixed.
First memory leak occurred due to improper linked list construction
in `add_to_ptr_list` function.
In case if list had tail - result of execution would be lost pointer of
previous tail.

Second memory leak was in `output_error`.
Function allocated `dataset` but never freed allocated memory.
2014-10-06 14:57:16 +04:00
András Veres-Szentkirályi
34f43d429f replaced deprecated function driver_output_term
From erl_driver.h:

	driver_output_term() is deprecated, and scheduled for removal in
	OTP-R17. Use erl_drv_output_term() instead.
2013-09-18 13:45:32 +02:00