PowerBuilder 2017 R3 and PowerServer
Same code - I ran as a PowerBuilder app and the code (correctly) generated a SQLCA error when CONNECTing to the database, yet running as PowerServer Web did not get an error. I purposely used an invalid password in both cases, so should have generated a SQLCA error code. Is it possible that by having to specify a valid DataSource before deploying the PowerServer code, it's fooled into thinking "all-is-well"?
Note that we are connecting to an Oracle database via the Native Interface, and that valid UserID/passwords are actually valid Oracle UserID/passwords. That is, there's no table(s) to check for valid credentials.