Comments (7)
There still remain many ways to raise an error with that code, so it's better instead of that to add exception handling for SQLite calls: to replace (lines 1348-1350)
for rowFT in fastRows(db, queryFT,
[q,q,$ThreadsPerPage,$c.pageNum,$ThreadsPerPage,q,
q,q,$ThreadsPerPage,$c.pageNum,$ThreadsPerPage,q]):
with
let rows =
try: getAllRows(db, queryFT,
[q,q,$ThreadsPerPage,$c.pageNum,$ThreadsPerPage,q,
q,q,$ThreadsPerPage,$c.pageNum,$ThreadsPerPage,q])
except: @[]
for rowFT in rows:
from nimforum.
@Leu-Gim can you reproduce this in the current deployment? I was unable to. Regards, Mark. cc @dom96
from nimforum.
After transition to Karax (the new forum) -
don't work any more at all, as I see,
and "-someword" is treated as just "someword".
If it worked, the issue would not be visible to users, I think,
because results are fetched via ajax,
via subrequests to /search.json?q=...
,
and that exception would raise in that request,
and at client side there's a check for HTTP status of the ajax request prior to processing results.
from nimforum.
Say "-nick" returns results for "nick"...
from nimforum.
Oh, Forum has been moved to SQLite's "Enhanced Query Syntax" (https://sqlite.org/fts3.html) now, as I see - AND
, OR
and parrentheses work. Then NOT
should work instead of -
.
from nimforum.
Yes, NOT
does work too. An example query with all three operators and ()
for test: "(csp AND oberon) OR (actionscript NOT mtasc)" (picked for obviousness).
Queries with just negation (NOT word
) still fail, and the server doesn't work then for a couple of seconds. So the issue is the same, with just NOT
instead of -
. And solution is the same.
from nimforum.
@Leu-Gim Thanks - I will study your comments soon. Mark.
from nimforum.
Related Issues (20)
- Forum front-end fails when viewing preview (karax bug) HOT 5
- Post shows edit button but trying to save the message gives "post is too old" error HOT 6
- Show forum version information on web pages HOT 2
- Issue rendering code blocks with triple ticks. HOT 3
- Old thread stays bumped after post was deleted. HOT 1
- Post not opening HOT 3
- No way of register to forum if your activation link is expired HOT 7
- Cannot register in forum HOT 6
- Can't create Nim forum account. Never received any emails whatsoever, not even to spam. (Also, I have a bunch of typos to report.) HOT 3
- Couldn't retrieve search results.
- cannot compile on windows with mingw (bcrypt; "u_int32_t unknown type name") HOT 6
- Show source after "Couldn't render historic post" HOT 4
- Formatting of search results is poor HOT 17
- last visit broken when there are two pinned posts HOT 1
- Make the forum nim 2.0 ready HOT 2
- Changing email sets you back to "Moderated" rank HOT 1
- enable `resend email confirmation` on nim Forum HOT 3
- Errors when Registering an account HOT 9
- Quote needs a followup line or it disappears
- [Feature Request] Link to a specific message within a post
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimforum.