daust / JasperReportsIntegration

JasperReportsIntegration provides an interface to use the JasperReports reporting engine in an Oracle database application, specifically with Oracle Application Express (Oracle APEX).
BSD 3-Clause "New" or "Revised" License
55 stars 23 forks source link

Constant utl_http.http_version_1_1 causes compiler issues on older Oracle versions #123

Closed daust closed 1 year ago

daust commented 1 year ago

The constant utl_http.http_version_1_1 is not available on Oracle 11. Although this is clearly an old version, it could still work. See: https://github.com/daust/JasperReportsIntegration/issues/112

I will duplicate the constant in my code so that I don't rely on the Oracle package:

  -- The HTTP protocol versions that can be used in the function begin_request
  HTTP_VERSION_1_0  CONSTANT VARCHAR2(64) := 'HTTP/1.0'; -- HTTP 1.0
  HTTP_VERSION_1_1  CONSTANT VARCHAR2(64) := 'HTTP/1.1'; -- HTTP 1.1
daust commented 1 year ago

Replaced all occurrences of utl_http.http_version_1_1 with the same constant in the package xlib_http so that it will also work in Oracle 11.