Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e9605a03
Commit
e9605a03
authored
May 02, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Even more duplicate word removal, in the spirit of the season
parent
00381104
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
contrib/fuzzystrmatch/levenshtein.c
contrib/fuzzystrmatch/levenshtein.c
+2
-2
contrib/pgcrypto/crypt-md5.c
contrib/pgcrypto/crypt-md5.c
+1
-1
src/backend/tsearch/wparser_def.c
src/backend/tsearch/wparser_def.c
+1
-1
No files found.
contrib/fuzzystrmatch/levenshtein.c
View file @
e9605a03
...
...
@@ -349,8 +349,8 @@ levenshtein_internal(text *s, text *t,
* remaining portions of the strings are of equal length. There
* are (n - 1) characters in the target string, of which j have
* been transformed. There are (m - 1) characters in the source
* string, so we want to find the value for zp where
where (n - 1)
*
- j =
(m - 1) - zp.
* string, so we want to find the value for zp where
(n - 1) - j =
* (m - 1) - zp.
*/
int
zp
=
j
-
(
n
-
m
);
...
...
contrib/pgcrypto/crypt-md5.c
View file @
e9605a03
...
...
@@ -34,7 +34,7 @@ char *
px_crypt_md5
(
const
char
*
pw
,
const
char
*
salt
,
char
*
passwd
,
unsigned
dstlen
)
{
static
char
*
magic
=
"$1$"
;
/* This string is magic for this algorithm.
* Having it this way, we can get
get
better
* Having it this way, we can get better
* later on */
static
char
*
p
;
static
const
char
*
sp
,
...
...
src/backend/tsearch/wparser_def.c
View file @
e9605a03
...
...
@@ -2508,7 +2508,7 @@ prsd_headline(PG_FUNCTION_ARGS)
List
*
prsoptions
=
(
List
*
)
PG_GETARG_POINTER
(
1
);
TSQuery
query
=
PG_GETARG_TSQUERY
(
2
);
/* from opt + start and
a
nd tag */
/* from opt + start and
e
nd tag */
int
min_words
=
15
;
int
max_words
=
35
;
int
shortword
=
3
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment