Changeset 45 for trunk


Ignore:
Timestamp:
Jun 7, 2006, 10:30:17 PM (18 years ago)
Author:
rainer
Message:

Fix for broken compile with oracle

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r43 r45  
    11381138            fi
    11391139            LIBS="${LIBS} -L${ORACLE_LIB_DIR} ${ORACLE_LIBS}"
     1140            if test "x$GCC" != "xyes"; then
     1141              CFLAGS="${CFLAGS} -fno-strict-aliasing"
     1142            fi
    11401143          fi
    11411144          AC_DEFINE(WITH_ORACLE)
  • trunk/src/sh_database.c

    r40 r45  
    522522    {
    523523      if (str[len-1] == '\n')
    524         str[len-1] == '\0';
     524        str[len-1] = '\0';
    525525    }
    526526  return str;
     
    687687                      _("sh_database_query"));
    688688      if (retry == 0 &&
    689           (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))
    690           {
    691             ++retry; sh_database_reset(); goto oracle_doconnect;
    692           }
     689          (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)))
     690        {
     691          ++retry; sh_database_reset(); goto oracle_doconnect;
     692        }
    693693      goto err_out;
    694694    }
     
    706706                      _("sh_database_query"));
    707707      if (retry == 0 &&
    708           (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))
     708          (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)))
    709709          {
    710710            ++retry; sh_database_reset(); goto oracle_doconnect;
     
    742742                      _("sh_database_query"));
    743743      if (retry == 0 &&
    744           (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))
     744          (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)))
    745745          {
    746746            ++retry; sh_database_reset(); goto oracle_doconnect;
     
    760760                      _("sh_database_query"));
    761761      if (retry == 0 &&
    762           (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))
     762          (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)))
    763763          {
    764764            ++retry; sh_database_reset(); goto oracle_doconnect;
     
    779779                      _("sh_database_query"));
    780780      if (retry == 0 &&
    781           (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))
     781          (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)))
    782782          {
    783783            ++retry; sh_database_reset(); goto oracle_doconnect;
     
    795795                      _("sh_database_query"));
    796796      if (retry == 0 &&
    797           (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))
     797          (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)))
    798798          {
    799799            ++retry; sh_database_reset(); goto oracle_doconnect;
Note: See TracChangeset for help on using the changeset viewer.