About Question enthuware.ocpjp.ii.v11.2.3372 :

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
Sergiy Romankov
Posts: 31
Joined: Thu Feb 19, 2015 8:25 am
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by Sergiy Romankov »

stmt.enquoteIdentifier(mode, false) doesn`t make code safe, second parameter should be true

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

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by admin »

Why do you think so?
true and false values produce the same result for non-simple sql identifiers.
You might want to checkout the JavaDoc description.

philippe
Posts: 26
Joined: Sun Jul 16, 2017 4:24 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by philippe »

Why is enquoteIdentifier used instead of enquoteLiteral? What you want to do here is pass a literal.

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

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by admin »

Yes, it should be enquoteLiteral. Fixed.
thank you for your feedback!

philippe
Posts: 26
Joined: Sun Jul 16, 2017 4:24 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by philippe »

You're welcome. Is it possible to also push the change in the 1z0-816 question bank?

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

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by admin »

Yes, done.

philippe
Posts: 26
Joined: Sun Jul 16, 2017 4:24 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by philippe »

When I check the version for the 1z0-816 question bank, I still see version 1.30. Does the new version still have to be pushed?

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

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by admin »

If multiple minor corrections reported during a small time frame, they are all applied together and then the version number is updated. This is done to ensure that users are not annoyed by too many update notifications in a short span.

If a critical error is fixed (such as a wrong answer to a question), we apply the fix, update the version number and release the new question bank file immediately.

In this case, the version number has also been updated to 31 and the notification will also be updated soon.

OliviaJohnson
Posts: 7
Joined: Sat Jan 30, 2021 2:04 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by OliviaJohnson »

How does the plus sign(+) syntax work? Oracle docs on Statement/PreparedStatement/java.sql/Wrapper does not have any plus sign(+).

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

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by admin »

Not sure I understand your question. Which + sign and in what place are you talking about?

OliviaJohnson
Posts: 7
Joined: Sat Jan 30, 2021 2:04 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by OliviaJohnson »

Hi, I was talking about this

Code: Select all

+mode+

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

Re: About Question enthuware.ocpjp.ii.v11.2.3372 :

Post by admin »

Oh, that is just string concatenation. mode is a parameter. So,
String qr = "SET SESSION sql_mode = '"+mode+"';";
will actually produce this string:
SET SESSION sql_mode = MODEVALUE;

Where, MODEVALUE is the whatever was passed as the mode parameter.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests