示例11: IsEntryExpired ▲点赞 1▼ privatestaticboolIsEntryExpired(NpgsqlConnection connection,intentryId){varcount = connection.Query<long>(@"select count(*) from """+ GetSchemaName() +@""".""counter"" where ""id"" = @id",new{id = entryId}).Single();returncount ==0; } 开发者ID...
MASTER_CONNECTION(p)->closetime+pool_config->connection_life_time);if (now >= (MASTER_CONNECTION(p)->closetime+pool_config->connection_life_time)) { /* discard expired connection */ pool_debug("pool_backend_timer_handler: expires user %s database %s", ...
Two of the error messages are now unstable because they expose chosen-at-random socket paths: diff -U3 /home/postgres/pgsql/src/interfaces/ecpg/test/expected/connect-test5.stderr /home/postgres/pgsql/src/interfaces/ecpg/test/results/connect-test5.stderr --- /home/postgres/pgsql/src/interfac...