Can I test Extended Query in core test framework - Mailing list pgsql-hackers

From Andy Fan
Subject Can I test Extended Query in core test framework
Date
Msg-id CAKU4AWqmaGU+Phr7mpRS==mXWH5dGUWCG5od8MDeDqeZqnA4WQ@mail.gmail.com
Whole thread Raw
Responses Re: Can I test Extended Query in core test framework
Re: Can I test Extended Query in core test framework
List pgsql-hackers
I want to write some test cases with extended query in core test system. basically it looks like 

PreparedStatement preparedStatement  = conn.prepareStatement("select * from bigtable");
preparedStatement.setFetchSize(4);
ResultSet rs = preparedStatement.executeQuery();
while(rs.next())
{
System.out.println(rs.getInt(1));
// conn.commit();
conn.rollback();
}

However I don't find a way to do that after checking the example in src/test/xxx/t/xxx.pl 
where most often used object is PostgresNode, which don't have such abilities. 

Can I do that in core system, I tried grep '\->prepare'  and  '\->execute' and get nothing.
am I miss something? 


--
Best Regards
Andy Fan

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Issue with cancel_before_shmem_exit while searching to remove a particular registered exit callbacks
Next
From: Li Japin
Date:
Subject: Re: Terminate the idle sessions