I am using db2_pconnect to establish a persistent connection and I change
the default schema using "SET SCHEMA" for certain queries. I generally
use a wrapper to retrieve my connection and always initialize with
the i5_lib option, but my concern is what happens if I do not? Try as I
may I have not found documentation on the behavior of db2_pconnect when it
comes to a default schema. How and when does db2_pconnect reset the
default schema? Does it always initialize the default schema for each
connection even when the i5_lib option is not provided? My concern is that
the schema change made in one session will persist to the next.

I know the library list changes stay persist, but my hope is that the
default schema is reset with each new connection/session.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.