Alexey Romanov
96c34117df
Fix a wrong allocation size
2014-10-10 12:06:20 +04:00
Alexey Romanov
45a1b22b41
Fix statement finalization in scripts ( #24 )
2014-10-10 11:35:48 +04:00
Alexey Romanov
9b9448dcdd
Merge remote-tracking branch 'stentroad/custom'
2014-10-10 10:28:39 +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
54048aae5b
Define ERLANG_SQLITE3_LOAD_EXTENSION by default
...
Fixes #30
2014-10-09 23:56:13 +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
András Veres-Szentkirályi
b0f95b7774
use Erlang typedefs instead of hardcoded types
...
for example, on Linux x86_64, ErlDrvSSizeT is long, not int
2013-09-18 13:31:17 +02:00
András Veres-Szentkirályi
a5df9269a5
compile debug print functionality only when DEBUG is defined
2013-04-01 20:53:56 +02:00
Alexey Romanov
b0f1aa1351
Added a way to enable exception loading
2013-03-25 00:49:12 +04:00
Alexey Romanov
aeaa81f44b
Return result from en/disabling extension loading
...
Previously the return value of `sqlite3_enable_load_extension` was ignored.
2013-03-23 22:05:06 +04:00
Ryan Flynn
ef5555cbe2
%lld/%llu for 64-bit ints
2013-03-23 11:29:25 -04:00
Ryan Flynn
029995f6a3
issue #17 : solve Symbol not found: _sqlite3_enable_load_extension by #ifdef-ing it out by default; erlang-sqlite3 will need configure-esque feature detection via http://www.sqlite.org/c3ref/compileoption_get.html or http://www.sqlite.org/pragma.html#pragma_compile_options
2013-03-23 11:29:24 -04:00
Brian Stubbs
7fa65d6712
Allocating more memory than required?
2012-11-07 12:24:14 -02:00
Alexey Romanov
8752bffec1
Copy column names to driver-allocated memory.
...
Fixes issue #14 by copying out column names before memory can be overwritten by another statement.
2012-09-17 10:32:16 +04:00
Alexey Romanov
e417a95f53
Fixes for extension loading
2012-09-14 17:17:34 +04:00
Alexey Romanov
5fd17e2abf
Fixed formatting
2012-09-14 16:15:46 +04:00
Alexey Romanov
99ea8fdb7b
Fixed issue #13 (binding ints from 128 to 255 incorrectly)
2012-09-14 16:11:49 +04:00
booo
20298aad29
First implementation for enable_load_extension
...
TODO: Wait for the reply of the port driver
2012-07-24 16:14:33 +02:00
Alexey Romanov
193baaaf7e
Test log isn't actually stderr before closing it
2012-06-18 20:34:08 +04:00
Alexey Romanov
398f02c039
Open log file in C code only when DEBUG macro is defined
2012-06-18 15:08:56 +04:00
Alexey Romanov
a1e3fbc4b0
Fixed handling of errors after columns are determined
2012-04-19 16:40:16 +04:00
Ryan Flynn
824adcea32
don't hide the problem, use stderr instead
2012-03-14 11:09:23 -04:00
Ryan Flynn
7f9206336a
if logfile open fails fallback to /dev/null or stderr rather than crash
2012-03-13 17:47:35 -04:00
Alexey Romanov
9297d7268e
Removed unneeded function
2012-02-22 13:32:53 +04:00
Alexey Romanov
8aadf7adc4
Fixed typo in basic_driver_entry
2011-12-16 13:23:56 +04:00
Alexey Romanov
d35c52a370
Fixed tests and documentation.
2011-05-10 12:32:40 +04:00
Alexey Romanov
b0af67943d
Suppressed warning on Windows
2011-05-09 22:04:18 +04:00
Alexey Romanov
9eb6f9ed1f
Fixed a term encoding problem
...
See http://www.erlang.org/doc/man/ei.html#ei_decode_string
2011-04-26 11:25:05 +04:00
Alexey Romanov
f9c8232e35
Fix infinite loop
2011-04-26 09:41:34 +04:00
Alexey Romanov
81b42236a7
Fix format of a debug message
2011-04-25 11:40:00 +04:00
Alexey Romanov
14ab6227df
Fix Windows compilation
2011-04-20 11:53:48 +04:00
Alexey Romanov
442fc256d5
Fixed, all tests pass
2011-04-19 17:48:19 +04:00
Alexey Romanov
dddb991d5e
Improved dataset printing
2011-04-19 15:36:36 +04:00
Alexey Romanov
7935c3c652
Trying to fix (this version doesn't work)
2011-04-05 12:44:14 +04:00
Alexey Romanov
12a5d3c9a6
Begin fixing script support
2011-04-04 17:14:48 +04:00
Alexey Romanov
3cf9d77ee6
Fixed dumb error
2011-04-04 11:53:55 +04:00
Alexey Romanov
b677cb45e8
Support OTP R13B.
...
Remove use of R13B04 features.
2011-02-16 18:54:04 +03:00
Alexey Romanov
11452c5b88
Finished multiple statement support
2011-01-24 15:48:48 +03:00
Alexey Romanov
9f57f6ae39
Support script execution (no error messages currently)
2011-01-24 14:01:35 +03:00
Alexey Romanov
9d138346cd
Suitable error message for empty statements
2011-01-24 12:38:38 +03:00
Alexey Romanov
7134209896
Remove useless assignment to const char *rest
2011-01-24 11:59:03 +03:00
Alexey Romanov
2cfabf6d75
Remove const type cast
2011-01-24 11:50:08 +03:00
Alexey Romanov
7c4ccd419e
Check statement for NULL after sqlite3_prepare_v2
2011-01-24 11:44:39 +03:00
Alexey Romanov
816ca0afb3
Fix buffer overflow
2011-01-06 16:28:12 +03:00
Alexey Romanov
cf864c1a13
Removed warnings when compiling under MSVC
2010-12-17 13:25:50 +03:00
Alexey Romanov
df6e7601ce
Fix macro used to determine if we are on Win32
2010-12-11 21:57:42 +03:00
Alexey Romanov
aacdf8c3f6
Fixed compilation errors under CL
2010-12-11 21:02:22 +03:00
Alexey Romanov
55611d5756
Fixed binding in prepared statements
2010-12-10 11:24:12 +03:00
Alexey Romanov
a49fbd8ec5
More specific error messages
2010-12-10 11:01:56 +03:00