About Question enthuware.ocpjp.v8.2.1767 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Standalone
Posts: 5
Joined: Thu Nov 30, 2017 4:37 pm
Contact:

About Question enthuware.ocpjp.v8.2.1767 :

Post by Standalone »

Code: Select all

Properties p = new Properties(); 
p.setProperty("user", userid); 
p.setProperty("password", pwd);
Connection c = DriverManager.getConnection(dburl);
c.setClientInfo(p);
c.connect();
The second option shows the above code and says "There is no setClientInfo or connect method in Connection.", but when I paste it into my IDE c.setClientInfo(p) compiles just fine.

Is this a mistake?

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1767 :

Post by admin »

Yes, you are right. That's a mistake. The explanation should just say there is no connect method in Connection. Fixed.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests