Andreas Rumpf
36c90fa8fb
removed unused imports [refactoring]
...
(cherry picked from commit 0d5bd7e8b5 )
2019-08-13 16:59:49 +02:00
Chris Heller
47c965f85f
Skip db_postgres.setRow if getRow returns 0 rows ( #11859 )
...
Fixes nim-lang/Nim#11821
(cherry picked from commit 343ace8194 )
2019-08-12 12:11:25 +02:00
Andreas Rumpf
69c2341663
makes the -d:nimIncremental compiler mode compile again
...
(cherry picked from commit 25e6c53bb5 )
2019-08-12 11:08:38 +02:00
Araq
e34a318b9f
minor style changes
...
(cherry picked from commit cb3c3c306c )
2019-07-15 08:03:16 +02:00
LemonBoy
7d217a71d3
Render deprecated pragmas ( #8886 )
...
* Render deprecated pragmas
* fix the expected html
* clean up the documentation regarding deprecations
* fix typo
* fix system.nim
* fix random
2019-06-03 10:15:20 +02:00
jiro
468599c654
db_sqlite: Update documentation ( #10330 ) ( #11266 )
2019-05-19 20:27:12 +02:00
Miran
9d4190a5cc
fixes #11139 (re.nim memory leak) ( #11265 )
...
Use the same PCRE function for freeing up the memory as nre.nim does.
2019-05-16 21:06:31 +02:00
Zed
3b4952da94
Fix header inconsistencies in documentation ( #11071 )
2019-04-23 08:40:20 +02:00
Zed
88079a0dee
Documentation import fixes ( #11070 )
...
* Move asyncdispatch imports below introduction
* Move nre imports below documentation
2019-04-21 09:45:05 +02:00
Araq
eeae88d81e
live with the hacks, PCRE's design is crap
2019-03-19 15:49:24 +01:00
Andreas Rumpf
cd9caf09d1
pcre.nim: added pcre_free and removed hacks in nre and re.nim
2019-03-19 12:48:54 +01:00
Kobi
dd422bfb0f
fix replacef typo in example
2019-02-13 23:30:14 +01:00
Emery Hemingway
15422a3e5a
Genode fixes ( #10491 )
...
Readline pasthru, add linker to config, do not pass -lm to linker.
2019-01-29 15:08:43 +01: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
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Araq
7f0559b93f
fixes #7241
2019-01-13 14:09:14 +01:00
Araq
647066e378
make the stdlib work with the changed docgen
2019-01-11 22:17:43 +01:00
Miran
5345c5b130
remove deprecated modules ( #10215 )
...
* removed from `compiler`:
* lists (deprecated 2 years ago)
* removed from `lib` (all deprecated 3 years ago):
* ssl
* matchers
* httpserver
* removed from `lib/deprecated`:
* unsigned
* actors (and three accompanying tests)
* parseurl
* moved to `lib/deprecated`:
* securehash (the reason for not directly removing - it was deprecated (only) one year ago)
2019-01-07 10:37:49 +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
Flaviu Tamas
c0a47f7e22
Rework nil/option for nre in light of ""==nil
...
Fixes #9243
2018-12-11 22:15:57 +00:00
Flaviu Tamas
22b3e9df27
Revert 7f49364fd0 for nre
2018-12-11 22:15:02 +00:00
Flaviu Tamas
ebcf9406be
Improve nre documentation ( fixes #9470 )
2018-11-18 20:12:24 -05:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Denis Lisovik
8b4a910c91
fix split proc ignored maxsplit argument. Proc split didn't pass maxsplit argument to split iterator
2018-11-11 18:40:43 +03:00
Araq
895ac5bec4
nre: don't use the deprecated import syntax
2018-10-30 21:58:59 +01:00
Clyybber
2aa7eeda39
actually do ceiling division, not a similar operation
...
Co-Authored-By: flaviut <tamasflaviu@gmail.com >
2018-10-28 14:34:05 -04:00
Flaviu Tamas
9ca1c2c930
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()).
2018-10-28 00:53:09 -04:00
Federico Ceratto
afc453beff
Update example ( #9395 )
2018-10-17 00:17:37 +02:00
Andreas Rumpf
8955470644
fixes #9306 properly, fixes #9306
2018-10-14 11:19:51 +02:00
Josh Goebel
38454c6951
Fix type in docs ( #9362 )
2018-10-14 08:44:36 +02:00
Araq
8ab6fa1be2
fixes #9306
2018-10-11 16:15:35 +02: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