Postgresql syntax error while using params.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- postgresql
- Domain
- databases
Research direction
The issue names the PostgreSQL node and a Function node parameter array, but no repository file or test. Start by reproducing the shown function call and tracing how the node handles parameterized PostgreSQL queries; done would mean identifying whether the node or SQL input causes the syntax error and adding a regression test or documented resolution.
Written by the indexing model from the issue text.
Description
Suppose a parameter array like
return {payload: dataObj, /* which also contains the data */ params: [
null,
'test_identifier,
2.0,
'2024-09-26 14:40:00+2'
]};
(Used in a function node.)
We also have defined this postgresql function
CREATE OR REPLACE FUNCTION handle_val(
error TEXT, -- might be problem, error is usually is null?
tableId TEXT,
value NUMERIC,
vDate TIMESTAMP WITH TIME ZONE)
RETURNS void LANGUAGE plpgsql AS
$body3$
-- do stuff, has been tested!
$body3$;
Then I call the function in the postgresql node
But I am getting an error:
"error: Syntax error at »-«"
I don't have any clue, what its reason can be.
What am I doing wrong?
- Dominant language
- HTML
- Stars
- 38
- Forks
- 12
- Avg merge
- 4h 1m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alexandrainst/node-red-contrib-postgresql
-
Intermittent “password authentication failed” errors — likely connection-pool reuse bug in v0.15.4 Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
alexandrainst/node-red-contrib-postgresql#123 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
alexandrainst/node-red-contrib-postgresql#113 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
alexandrainst/node-red-contrib-postgresql#110 · 1 comment ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 30/100
alexandrainst/node-red-contrib-postgresql#97 · 8 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in alexandrainst/node-red-contrib-postgresql
Similar issues
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
[BUG] A column whose default is the empty string is drawn in the ER diagram as having no default Openbug database-provider good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
libredb/libredb-studio#1030 · 6 comments ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug redshift
Difficulty 2/5 1-3 hours Newbie friendliness 88/100