471,873 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

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)
(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 1739
9,065 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
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.