mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
DECLARE STATEMENT is a statement that lets users declare an identifier pointing at a connection. This identifier will be used in other embedded dynamic SQL statement such as PREPARE, EXECUTE, DECLARE CURSOR and so on. When connecting to a non-default connection, the AT clause can be used in a DECLARE STATEMENT once and is no longer needed in every dynamic SQL statement. This makes ECPG applications easier and more efficient. Moreover, writing code without designating connection explicitly improves portability. Authors: Ideriha-san ("Ideriha, Takeshi" <ideriha.takeshi@jp.fujitsu.com>) Kuroda-san ("Kuroda, Hayato" <kuroda.hayato@jp.fujitsu.com>) Discussion: https://postgr.es/m4E72940DA2BF16479384A86D54D0988A565669DF@G01JPEXMBKW04
21 lines
435 B
Plaintext
21 lines
435 B
Plaintext
****testcase1 test results:****
|
|
f1=1, f2=10, f3=db on con2
|
|
f1=2, f2=20, f3=db on con2
|
|
|
|
****testcase2 test results:****
|
|
f1=1, f2=10, f3=db on con1
|
|
f1=2, f2=20, f3=db on con1
|
|
|
|
****testcase3 test results:****
|
|
f1=1, f2=10, f3=db on con1
|
|
f1=2, f2=20, f3=db on con1
|
|
|
|
****testcase4 test results:****
|
|
f1=1, f2=10, f3=db on con2
|
|
f1=2, f2=20, f3=db on con2
|
|
|
|
****testcase5 test results:****
|
|
f1=1, f2=10, f3=db on con2
|
|
f1=2, f2=20, f3=db on con2
|
|
|