Skip to content

driver: the driver shouldn't touch the application enviroment variables #459

@giautm

Description

@giautm

When using the AutoConfigEmulator=true parameter, the driver set the SPANNER_EMULATOR_HOST env automaticly. This is causing issue when the application need two containers for its need.

if err := os.Setenv("SPANNER_EMULATOR_HOST", host); err != nil {
return err
}

On the JDBC implement, the driver also doesn't touch application's env:

https://github.com/search?q=repo%3Agoogleapis%2Fjava-spanner-jdbc+SPANNER_EMULATOR_HOST&type=code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions