Rule Definition
localSQLScope property must be set to YES
The localSQLScope property specifies the scope for identifiers for SQL result sets and prepared statements.
If you set the property to NO, all programs in the run unit share the identifiers. In this case, the identifiers that you create when you invoke SQL statements are available in other code. That other code can use the localSQLScope property to block access to those identifiers. The current generatable logic part can reference identifiers created elsewhere, but only if the SQL-related statements were already run in the other code and if the other code did not block access.
Remediation
Try to always have the localSQLScope set to YES.
Related Technologies
Technical Criterion
Programming Practices - Structuredness
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.