core: create db fails on rhel 6.4 using postgres..
core: create db fails on rhel 6.4 using postgres..

create db fails on rhel 6.4 using postgresql-8.4.13-1.el6_3.x86_64

This patch fix a failure on postgres 8.4 that fails to update a
parameter to a SP on postgres 8.4 while the same modification is OK for
postgres 9.x.

The solution uses a local SO variable to do the modifications and be
used later on on the INSERT statement.
This patch also modified the message data type to be text and not
varchar(4000) to match the audit_table definitions.

Change-Id: I4451f5bdf118efc02bb9100c59e0729283c4c2b5
Signed-off-by: Eli Mesika <dc8a2a200abf66067593de2e51fee9376f06ea0f@redhat.com>
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=890982

yingyun001/ovirt-engine,yapengsong/ovirt-engine,yingyun001/ovirt-engine,OpenUniversity/ovirt-engine,yapengsong/ovirt-engine,halober/ovirt-engine,yapengsong/ovirt-engine,zerodengxinchao/ovirt-engine,zerodengxinchao/ovirt-engine,zerodengxinchao/ovirt-engine,walteryang47/ovirt-engine,yingyun001/ovirt-engine,eayun/ovirt-engine,eayun/ovirt-engine,yingyun001/ovirt-engine,OpenUniversity/ovirt-engine,halober/ovirt-engine,zerodengxinchao/ovirt-engine,eayun/ovirt-engine,eayun/ovirt-engine,halober/ovirt-engine,yapengsong/ovirt-engine,eayun/ovirt-engine,walteryang47/ovirt-engine,OpenUniversity/ovirt-engine,yapengsong/ovirt-engine,halober/ovirt-engine,zerodengxinchao/ovirt-engine,walteryang47/ovirt-engine,yingyun001/ovirt-engine,OpenUniversity/ovirt-engine,walteryang47/ovirt-engine,OpenUniversity/ovirt-engine,walteryang47/ovirt-engine