Syncronized modifier question
1 posts in topic
Flat View  Flat View

Posted By:   Angela_Grankina
Posted On:   Thursday, October 23, 2003 07:28 AM

Does it make sense to synchronize on the parameter like this:

public static StringBuffer escapeQuery (StringBuffer query){

JDBCProps testProps = JDBCService.getProps(UIGlobals.dbPool);

if (testProps.getDbVendor() != JDBCProps.MYSQL && testProps.getDbVendor() != 0) {

synchronized (query){

return (query.append(" ESCAPE('\\') "));



return query;


Re: Syncronized modifier question

Posted By:   Edward_Harned  
Posted On:   Thursday, October 23, 2003 06:41 PM

1. What is "query". It's not defined here.

2. Try stating your question is english first and then use a snippet to illustrate. From the code you posted, sync() makes no sense.

About | Sitemap | Contact