We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae67d8 commit 6414fe1Copy full SHA for 6414fe1
postgres/__init__.py
@@ -826,6 +826,7 @@ def make_DelegatingCaster(postgres):
826
class DelegatingCaster(CompositeCaster):
827
828
def make(self, values):
829
+ # Override to delegate to the model registry.
830
if self.name not in postgres.model_registry:
831
832
# This is probably a bug, not a normal user error. It means
@@ -840,6 +841,9 @@ def make(self, values):
840
841
return instance
842
843
def parse(self, s, curs, retry=False):
844
+ # Override to protect against race conditions:
845
+ # https://github.com/gratipay/postgres.py/issues/26
846
+
847
if s is None:
848
return None
849
0 commit comments