Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
flywind
9450bf6c08
use single backtick ( #17100 )
2021-02-18 22:47:21 -08:00
shirleyquirk
f8866598e7
odbc regression from #14357 ( #15417 )
...
#14357 changed from sending 'val', an int, to a pointer to int, which is understandable, but not how SQLSetEnvAttr works.
"Depending on the value of Attribute, ValuePtr will be a 32-bit integer value or point to a null-terminated character string"
2020-09-29 17:08:24 +02:00
cooldome
a528382e05
fix sqlgetdata regression in odbc ( #15161 )
...
* fix sqlgetdata import
* fix db_odbc
* more fixes
* fix style
2020-08-07 22:37:54 +02:00
Bung
6668b43409
add insert,tryInsert unify for postgres that need pk name ( #14416 )
...
* add insert,tryInsert unify for postgres that need pk name
* add ReadDbEffect to new procs
* add .since and changelog
* change since to 1.3
* Update lib/impure/db_postgres.nim
Co-authored-by: bung87 <crc32@qq.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: alaviss <leorize+oss@disroot.org >
2020-05-22 19:24:52 +02:00
Bung
ce0552c100
fix #9771 ( #14357 )
...
* fix #9771
* map SQLLEN SQLULEN
* fix proc params take TSqlLen
Co-authored-by: bung87 <crc32@qq.com >
2020-05-15 21:00:06 +02:00
Andrew Owen
64acc9dbfb
[backport] Fix typo in docs ( #12356 ) [ci skip]
2019-10-04 08:40:15 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Huy
e5425b5f2f
[feature] add unsafeColumnAt procs, that return unsafe cstring from InstantRow ( #11647 )
2019-07-10 14:56:09 +02:00
Zed
3b4952da94
Fix header inconsistencies in documentation ( #11071 )
2019-04-23 08:40:20 +02:00
pgkos
a0c07ef863
Fix wrong integer types in odbcsql and db_odbc ( #10419 )
...
* Fix wrong parameter type in SQLErr
* Fix wrong types of integers passed to SQLGetData
2019-01-22 22:39:53 +01:00
LemonBoy
6825430831
Restrict ptr/ref to ptr/ref implicit conversion ( #10411 )
...
* Restrict ptr/ref to ptr/ref implicit conversion
Fixes #10409
* Make the ptr conversions explicit in db_odbc
2019-01-22 11:17:20 +01:00
Leonardo Cecchi
b7be67349b
Fix ODBC SQL Error string decoding ( #10207 ) [backport]
...
ODBC Errors were presented to the users as a sequence of characters.
I.e.:
>test_oracle.exe
Error: ['H', 'Y', '0', '0', '0', '\x00', '\x00', ...]
test_oracle.nim(15) test_oracle
test_oracle.nim(8) test_oracle
db_odbc.nim(534) open
db_odbc.nim(168) dbError
Error: unhandled exception: ODBC Error [DbError]
This patch fix the string decoding, creating a real string:
>test_oracle.exe
Error: HY000 [Oracle][ODBC][Ora]ORA-12541: TNS:no listener
test_oracle.nim(15) test_oracle
test_oracle.nim(8) test_oracle
db_odbc.nim(534) open
db_odbc.nim(168) dbError
Error: unhandled exception: ODBC Error [DbError]
2019-01-07 00:48:55 +01:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Araq
4f8cf945fb
docs: remove most stale links; refs #9109
2018-09-29 11:23:29 +02:00
Andreas Rumpf
2ac265696b
Merge branch 'db_odbc2' of https://github.com/jlp765/Nim into jlp765-db_odbc2
2016-05-28 20:11:24 +02:00
lihf8515
1a5bde28ed
Repair using the db_odbc module to query the Oracle database, the program compiled in the release mode, the return of the field value is null.
2016-03-21 15:15:28 +08:00
JamesP
8a286d3e58
Fix row reading procs to not use SQLRowCount, but SQLFetch until returns SQL_NO_DATA
...
change SqlCheck() and SqlGetDBMS() to sqlCheck() and sqlGetDBMS() (camelCase consistency)
2016-01-24 17:32:23 +10:00
Dominik Picheta
6ca9e5cbcc
Improved documentation for all db modules.
2016-01-18 13:34:53 +00:00
Andreas Rumpf
a3c8bb9376
updated db*.nim modules
2015-12-16 21:24:13 +01:00
JamesP
16d7db47aa
add db_odbc library module
2015-12-09 14:02:28 +10:00