cycle / database

Database Abstraction Layer, Schema Introspection, Schema Generation, Query Builders
MIT License
54 stars 23 forks source link

Fixing Postgres schema after reconnect #126

Closed msmakouz closed 1 year ago

msmakouz commented 1 year ago

https://discord.com/channels/538114875570913290/1125347438505508904

Property $this->searchPath can't be cleared. If clear this property, the query SET search_path TO {$schema} will not be executed when reconnecting.

codecov[bot] commented 1 year ago

Codecov Report

Merging #126 (cac5b41) into 2.x (d5b1be2) will decrease coverage by 0.01%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x     #126      +/-   ##
============================================
- Coverage     94.68%   94.68%   -0.01%     
+ Complexity     1667     1666       -1     
============================================
  Files            96       96              
  Lines          4496     4494       -2     
============================================
- Hits           4257     4255       -2     
  Misses          239      239              
Impacted Files Coverage Δ
src/Driver/Postgres/PostgresDriver.php 93.18% <100.00%> (-0.16%) :arrow_down: