HHH-17264 Use json_object to create empty json
This commit is contained in:
parent
86a1cf20f6
commit
8a429e7fb4
|
@ -630,12 +630,12 @@ disable_userland_proxy() {
|
|||
if [[ "$HEALTCHECK_PATH" == "{{.State.Health.Status}}" ]]; then
|
||||
if [[ ! -f /etc/docker/daemon.json ]]; then
|
||||
sudo service docker stop
|
||||
echo '{"userland-proxy": false}' > /etc/docker/daemon.json
|
||||
sudo bash -c "echo '{\"userland-proxy\": false}' > /etc/docker/daemon.json"
|
||||
sudo service docker start
|
||||
elif ! grep -q userland-proxy /etc/docker/daemon.json; then
|
||||
docker_daemon_json=$(</etc/docker/daemon.json)
|
||||
export docker_daemon_json=$(</etc/docker/daemon.json)
|
||||
sudo service docker stop
|
||||
echo "${docker_daemon_json/\}/,}\"userland-proxy\": false}" > /etc/docker/daemon.json
|
||||
sudo bash -c 'echo "${docker_daemon_json/\}/,}{\"userland-proxy\": false}" > /etc/docker/daemon.json'
|
||||
sudo service docker start
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -444,7 +444,7 @@ public class OracleAggregateSupport extends AggregateSupportImpl {
|
|||
if ( nullable ) {
|
||||
sqlAppender.append( "coalesce(" );
|
||||
sqlAppender.append( basePath );
|
||||
sqlAppender.append( ",cast('{}' as " );
|
||||
sqlAppender.append( ",json_object(returning " );
|
||||
sqlAppender.append( ddlTypeName );
|
||||
sqlAppender.append( "))" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue