mirror of https://github.com/yandex/odyssey.git
odissey: pass client_encoding and datestyle for console clients
This commit is contained in:
parent
1a65628e83
commit
b2a9e5b868
|
@ -203,9 +203,17 @@ od_frontend_setup(od_client_t *client)
|
|||
client->key.key);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
rc = shapito_be_write_parameter_status(stream, "", 1, "", 1);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
/* pass client startup parameters */
|
||||
od_schemeroute_t *scheme_route;
|
||||
scheme_route = client->scheme;
|
||||
if (scheme_route->storage->storage_type == OD_STORAGETYPE_LOCAL) {
|
||||
rc = shapito_be_write_parameter_status(stream, "client_encoding", 16, "UNICODE", 8);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
rc = shapito_be_write_parameter_status(stream, "datestyle", 10, "ISO", 4);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
}
|
||||
rc = od_write(client->io, stream);
|
||||
if (rc == -1) {
|
||||
od_error_client(&instance->logger, &client->id, "setup",
|
||||
|
|
Loading…
Reference in New Issue