HHH-17264 Use json_object to create empty json
This commit is contained in:
parent
917457f36d
commit
2751cdacb1
|
@ -635,12 +635,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
|
||||
|
|
|
@ -445,7 +445,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