session->server = server;
session->exclusive = exclusive;
- #ifdef HAVE_OCI9
- //following chunk is Oracle 9i+ ONLY
+#ifdef HAVE_OCI9
+
+ /* following chunk is Oracle 9i+ ONLY */
if (*charset) {
- //get ub2 charset id based on charset
- //this is pretty secure, since if we don't have a valid character set name,
- //0 comes back and we can still use the 0 in all further statements -> OCI uses NLS_LANG
- //setting in that case
+ /*
+ get ub2 charset id based on charset
+ this is pretty secure, since if we don't have a valid character set name,
+ 0 comes back and we can still use the 0 in all further statements -> OCI uses NLS_LANG
+ setting in that case
+ */
CALL_OCI_RETURN(charsetid, OCINlsCharSetNameToId(
OCI(pEnv),
charset));
oci_debug("oci_do_connect: using charset id=%d",charsetid);
}
- //create an environment using the character set id, Oracle 9i+ ONLY
+ /* create an environment using the character set id, Oracle 9i+ ONLY */
CALL_OCI(OCIEnvNlsCreate(
&session->pEnv,
OCI_DEFAULT,
charsetid,
charsetid));
- #else
- //fallback solution (simply use global env and charset, same behaviour as always been)
+#else
+
+ /* fallback solution (simply use global env and charset, same behaviour as always been) */
session->pEnv = OCI(pEnv);
session->charsetId = 0;
- #endif /*HAVE_OCI9*/
+#endif /* HAVE_OCI9 */
/* allocate temporary Service Context */
CALL_OCI_RETURN(OCI(error), OCIHandleAlloc(
oci_session *session = 0;
oci_connection *connection = 0;
- //if a forth parameter is handed over, it is the charset identifier (but is only used in Oracle 9i+)
- if (zend_get_parameters_ex(4, &userParam, &passParam, &dbParam, &charParam) == SUCCESS) {
+ /* if a forth parameter is handed over, it is the charset identifier (but is only used in Oracle 9i+) */
+ if (zend_get_parameters_ex(4, &userParam, &passParam, &dbParam, &charParam) == SUCCESS) {
convert_to_string_ex(userParam);
convert_to_string_ex(passParam);
convert_to_string_ex(dbParam);