summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@oracle.com>2011-07-15 12:42:06 +0100
committerLuis Soares <luis.soares@oracle.com>2011-07-15 12:42:06 +0100
commit72857dc89cfe71eda4311a91e915d5a4ddde624e (patch)
treec25cdf41def591bdb4b71275b1c94ce72bc64376 /sql/protocol.cc
parentbf7d414b40b19ba7ec73b21aa00b1277e42cd1b2 (diff)
downloadmariadb-git-72857dc89cfe71eda4311a91e915d5a4ddde624e.tar.gz
DBUG_PRINT in solaris does not work well with NULL parameters.
HA_ERR was returning 0 (null string) when no error happened (error=0). Since HA_ERR is used in DBUG_PRINT, regardless there was an error or not, the server could crash in solaris debug builds. We fix this by: - deploying an assertion that ensures that the function is not called when no error has happened; - making sure that HA_ERR is only called when an error happened; - making HA_ERR return "No Error", instead of 0, for non-debug builds if it is called when no error happened. This will make HA_ERR return values to work with DBUG_PRINT on solaris debug builds.
Diffstat (limited to 'sql/protocol.cc')
0 files changed, 0 insertions, 0 deletions