Leonardo Cecchi
dd8192fc1d
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]
(cherry picked from commit b7be67349b )
2019-01-14 09:15:17 +01:00
Araq
78f9a55287
nre: don't use the deprecated import syntax
...
(cherry picked from commit 895ac5bec4 )
2018-11-01 18:06:57 +01:00
Clyybber
20b6c47d3f
actually do ceiling division, not a similar operation
...
Co-Authored-By: flaviut <tamasflaviu@gmail.com >
(cherry picked from commit 2aa7eeda39 )
2018-11-01 18:03:05 +01:00
Flaviu Tamas
71d9a1f289
Eliminate floating point arithmatic in nre
...
Integer division is already hard enough on your CPU, using floating
point here is WAY slower and can just as effectivly be done using
integers. This is important because matchImpl tends to be in the center
of very hot loops (like split()).
(cherry picked from commit 9ca1c2c930 )
2018-11-01 18:01:44 +01:00
Federico Ceratto
25ce980fe1
Update example ( #9395 )
...
(cherry picked from commit afc453beff )
2018-11-01 17:47:10 +01:00
Josh Goebel
5b3b091cd1
Fix type in docs ( #9362 )
...
(cherry picked from commit 38454c6951 )
2018-11-01 17:37:20 +01:00
Araq
596524d2ec
fixes #9306
...
(cherry picked from commit 8ab6fa1be2 )
2018-11-01 17:32:41 +01:00
Dominik Picheta
8c2f576527
Merge pull request #9171 from flaviut/fix-9053
...
Use runnableExamples for nre example code where possible
2018-10-03 20:43:47 -07:00
Flaviu Tamas
f55580383c
Use runnableExamples for example nre code
2018-10-03 16:39:43 -04:00
Dominik Picheta
c6e10a442d
Merge pull request #9151 from flaviut/fix-9053
...
Fix option documentation in nre (fixes #9053 )
2018-10-01 20:33:51 -07:00
Flaviu Tamas
a0ac0b9696
Fix option documentation in nre ( fixes #9053 )
2018-10-01 21:38:56 -04:00
Araq
4f8cf945fb
docs: remove most stale links; refs #9109
2018-09-29 11:23:29 +02:00
Andreas Rumpf
94684488d6
make more tests green
2018-08-14 21:15:03 +02:00
Araq
18859cbaa1
make nimweb compile again
2018-08-14 01:36:02 +02:00
Andreas Rumpf
7f49364fd0
make more tests green
2018-08-13 12:29:03 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
Timothee Cour
4deda6b732
Update nre.nim ( #8147 )
2018-06-29 02:13:49 -04:00
Kaushal Modi
0321ea36c9
Fix typo: PRCE -> PCRE
2018-06-05 12:58:23 -04:00
Andreas Rumpf
582786d068
db_mysql.nim: Work around string nil comparison logic
2018-06-04 12:20:56 +02:00
Varriount
381acc09e9
Update sqlite example to use empty strings.
...
Update sqlite example to use empty strings to use empty strings instead of nil.
2018-06-03 14:37:41 -04:00
Federico Ceratto
cb87bba82f
Update example ( #7788 )
2018-06-01 11:28:20 -04:00
Dominik Picheta
af593c2ef3
Better db_sqlite errors when db_sqlite not connected.
2018-05-13 09:09:20 +02:00
Andreas Rumpf
22670aad84
make nre compile again
2018-04-29 07:59:03 +02:00
Andreas Rumpf
f64f9e50cc
correct comparisons for nil strings/seqs
2018-04-28 15:13:44 +02:00
Jacek Sieka
72dfe176f5
remove dead code elimination option ( #7669 )
2018-04-23 11:02:38 +02:00
Andreas Rumpf
e2094bc6f4
make re.split consistent with strutils.split and other programming languages; refs #7278
2018-03-05 21:39:13 +01:00
Araq
0c28dcd9e2
Cleanup docs about re.nim
2018-03-05 13:20:49 +01:00
Vindaar
a897371797
move readPasswordFromStdin from rdstdin to terminal ( #7266 )
2018-02-27 17:49:35 +01:00
Andreas Rumpf
94141b8f68
fixes #7200
2018-02-10 16:41:48 +01:00
Araq
01304db5b2
re.nim: removed deprecated symbols
2017-11-28 01:57:44 +01:00
Araq
d0d02c2fe3
re.nim: Make tests green and deprecate 'parallelReplace'; it should be 'multiReplace' for consistency with strutils.nim
2017-11-28 01:57:44 +01:00
Andreas Rumpf
bb5bab1b74
make tests green again
2017-11-07 12:57:32 +01:00
Andreas Rumpf
b14cc1e3b2
fixes #6631
2017-10-30 14:45:57 +01:00
Andreas Rumpf
f1dab39086
remove old implementation of the roof operator; make tests green again; close #6292
2017-10-29 20:36:07 +01:00
Thomas Johnson
61a50d9c8c
Fixes #6571 ( #6578 )
2017-10-24 10:48:45 +02:00
Dominik Picheta
aa96343f1d
Remove reExtended from re constructor. Fixes #5627 . ( #6514 )
...
* Remove reExtended from re constructor. Fixes #5627 .
* Implement `rex` procedure as requested by @Araq.
2017-10-20 21:43:34 +02:00
Andreas Rumpf
503248efde
another attempt to make tests green again
2017-10-10 11:26:40 +02:00
Andreas Rumpf
7083c8df57
minor improvement for the db_sqlite module
2017-09-27 12:00:19 +02:00
Lyndsy Simon
8ea78b1bc9
db_postgres: Refactor open() behavior to be consistent with other DBs ( #6381 )
2017-09-15 16:56:08 +02:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
pgkos
481d8ba24a
Fix segfault in db_mysql fastRows ( #5605 )
2017-03-26 09:42:15 +02:00
Florent
34a3d40d18
fixes #5444 - nre.findIter keeps searching when no match is possible ( #5453 )
2017-03-02 11:48:41 +01:00
Anatoly Galiulin
279e4b0451
Fixes #5382
2017-02-13 13:35:40 +01:00
ionel anton
636b977457
Column details for postgres. ( #5380 )
2017-02-13 09:09:43 +01:00
Arne Döring
ca39e113d5
fix in using the linenoise function ( #5351 )
2017-02-08 10:25:57 +01:00
Andreas Rumpf
d35c561759
fixes #4996
2017-02-05 12:10:57 +01:00
jlp765
704eae8495
re additions for buffer (cstring) RE matching ( #5117 )
...
* Replace expr with untyped
* Add buffer (cstring) related procs
Replace expr with untyped
Replace testing assert() procs with doAssert()
* make the string variants call the cstring variants in order to fight code size
* Remove redundant proc
* fix casting of cstring
add init of variables (identified by verbosity:3)
* Speed up - use pattern.e for exec()
inline some procs
2017-01-16 15:55:15 +01:00
Andreas Rumpf
3715a5ac91
Merge pull request #4814 from scriptum/rpg-pcre-jit
...
Enable JIT in PCRE to improve regular expressions performance
2016-10-24 19:07:30 +02:00
Pavel Roschin
dbef9f97c2
Remove TODO for PCRE JIT
2016-10-10 02:21:35 +03:00
Araq
b8325181d1
EIO is called IOError now
2016-09-28 23:39:56 +02:00