469,086 Members | 1,117 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,086 developers. It's quick & easy.

postgresql error trying to bring documnet as a null

2 2Bits
Trying to change the docname to bring back a blank i instead get a resultSet error:
Java Side;
String filepath = foldername.trim() +"templates/" + control.getCoreports() + docname1 + ".docx";

String outpath = foldername.trim() +"merged/"+ docname1 + ".docx";

postgresql part

update test.coltran set docstored = l_uuid_32, docname1 = p_filnam where bilbatchno = l_bilbatchno;

INSERT into test.table
(id, data, name)
VALUES
(l_uuid_32, pg_read_binary_file(p_filnam), p_filnam);
end if;

now if this file is null it gives a result list error
Feb 12 '21 #1
1 1520
Banfa
9,060 Expert Mod 8TB
You have setup your table to allow NULLs in that/those columns haven't you?

What is your table structure?
Feb 12 '21 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Christopher.Becker | last post: by
1 post views Thread by David C. allen | last post: by
reply views Thread by Janning Vygen | last post: by
reply views Thread by John Pawlicki | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.