@@ -72,28 +72,28 @@ lookup_plisql_functions(void)
7272 lookup_attempted = true;
7373
7474#ifndef WIN32
75- /*
76- * Use RTLD_DEFAULT to search all loaded shared objects.
77- * plisql.so should already be loaded when these functions are called
78- * from within a PL/iSQL context.
79- */
80- void * fn ;
81-
82- fn = dlsym ( RTLD_DEFAULT , "plisql_get_current_exception_context" );
83- if ( fn != NULL )
84- get_exception_context_fn = ( plisql_get_context_fn ) fn ;
85-
86- fn = dlsym ( RTLD_DEFAULT , "plisql_get_current_exception_message" );
87- if ( fn != NULL )
88- get_exception_message_fn = ( plisql_get_message_fn ) fn ;
89-
90- fn = dlsym ( RTLD_DEFAULT , "plisql_get_current_exception_sqlerrcode" );
91- if ( fn != NULL )
92- get_exception_sqlerrcode_fn = ( plisql_get_sqlerrcode_fn ) fn ;
93-
94- fn = dlsym ( RTLD_DEFAULT , "plisql_get_call_stack" );
95- if ( fn != NULL )
96- get_call_stack_fn = ( plisql_get_call_stack_fn ) fn ;
75+ {
76+ /*
77+ * Use RTLD_DEFAULT to search all loaded shared objects.
78+ * plisql.so should already be loaded when these functions are called
79+ * from within a PL/iSQL context.
80+ */
81+ void * fn = dlsym ( RTLD_DEFAULT , "plisql_get_current_exception_context" );
82+ if ( fn != NULL )
83+ get_exception_context_fn = ( plisql_get_context_fn ) fn ;
84+
85+ fn = dlsym ( RTLD_DEFAULT , "plisql_get_current_exception_message" );
86+ if ( fn != NULL )
87+ get_exception_message_fn = ( plisql_get_message_fn ) fn ;
88+
89+ fn = dlsym ( RTLD_DEFAULT , "plisql_get_current_exception_sqlerrcode" );
90+ if ( fn != NULL )
91+ get_exception_sqlerrcode_fn = ( plisql_get_sqlerrcode_fn ) fn ;
92+
93+ fn = dlsym ( RTLD_DEFAULT , "plisql_get_call_stack" );
94+ if ( fn != NULL )
95+ get_call_stack_fn = ( plisql_get_call_stack_fn ) fn ;
96+ }
9797#endif
9898 /* On Windows, function pointers remain NULL - features require plisql */
9999}
0 commit comments