issue #1762: refine for more compatibility with other databases.  refinement of code to eliminate non-essential lines.