Re: [SQL] column doesn't get calculated - updated

2003-07-19 Thread Tom Lane
<[EMAIL PROTECTED]> writes: > when i copy/paste the select stmt into psql, it works. or if i use it > "dynamically". it doesn't work properly when i use it in a prepared > statement -- which is what i am doing. Could we see a self-contained example of the problem? It's hard to tell whether you ar

Re: [SQL] column doesn't get calculated - updated

2003-07-19 Thread floyds
when i copy/paste the select stmt into psql, it works. or if i use it "dynamically". it doesn't work properly when i use it in a prepared statement -- which is what i am doing. Regards, Floyd Shackelford 4 Peaks Technology Group, Inc. VOICE: 334.735.9428 FAX: 702.995.6462 EMAIL: [EMAIL PROTEC

Re: [SQL] column doesn't get calculated - update # 2

2003-07-19 Thread floyds
i was wrong. it doesn't work as a prepared statement nor as a dynamic string using jdbc. it works fine if i paste it into psql. is it possible that a problem with a calculated column and a subselect in conjunction is a jdbc bug? Regards, Floyd Shackelford 4 Peaks Technology Group, Inc. VOICE:

[SQL] column doesn't get calculated

2003-07-19 Thread floyds
this must be a problem with my sql, but this one has me stumped. the column: Debit."cumm_dbt_blnce" - Credit."cumm_crd_blnce" in the long sql statement below comes out as the literal: Debit."cumm_dbt_blnce" - Credit."cumm_crd_blnce" rather than as the calculated value. WHY!?!?! this works with s