Skip to content

Commit

Permalink
Merge pull request #40 from Skarsnik/master
Browse files Browse the repository at this point in the history
Added API version for sqlite/pg binding [Don't merge yet]
  • Loading branch information
Skarsnik committed Dec 24, 2015
2 parents b2f086c + 32a0164 commit 938cac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/DBDish/Pg/Native.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use NativeCall;

unit module DBDish::Pg::Native;

constant LIB = %*ENV<DBIISH_PG_LIB> || 'libpq';
constant LIB = %*ENV<DBIISH_PG_LIB> || ('pq', v5);

#------------ Pg library functions in alphabetical order ------------

Expand Down
2 changes: 1 addition & 1 deletion lib/DBDish/SQLite/Native.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enum SQLITE_TYPE is export (
SQLITE_NULL => 5
);

constant LIB = %*ENV<DBIISH_SQLITE_LIB> || 'libsqlite3';
constant LIB = %*ENV<DBIISH_SQLITE_LIB> || ('sqlite3', 0);

sub sqlite3_errmsg(OpaquePointer $handle)
returns Str
Expand Down
2 changes: 1 addition & 1 deletion lib/DBDish/mysql/Native.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use NativeCall;

unit module DBDish::mysql::Native;

constant LIB = %*ENV<DBIISH_MYSQL_LIB> || 'libmysqlclient';
constant LIB = %*ENV<DBIISH_MYSQL_LIB> || 'mysqlclient';

#From mysql_com.h
enum mysql-field-type is export (
Expand Down

0 comments on commit 938cac8

Please sign in to comment.