We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give the following classes:
class A < ::Sequel::Model plugin :bitemporal, version_class: AVersion end class AVersion < ::Sequel::Model many_to_one :b, class: "B" end class B < ::Sequel::Model plugin :bitemporal, version_class: BVersion end class BVersion < ::Sequel::Model end
When I do the following query I got PG::AmbiguousColumn: ERROR: column reference "created_at" is ambiguous.
PG::AmbiguousColumn: ERROR: column reference "created_at" is ambiguous
A.current_versions_dataset.eager_graph( b: :current_version ).select( Sequel.qualify(:a_versions, :master_id) )
The cause of the issue is in the following code snippet, It does not specify which table the columns belong to.
def self.current_versions_dataset t = ::Sequel::Plugins::Bitemporal.point_in_time n = ::Sequel::Plugins::Bitemporal.now version_class.where do (created_at <= t) & (Sequel.|({expired_at=>nil}, expired_at > t)) & (valid_from <= n) & (valid_to > n) end end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Give the following classes:
When I do the following query I got
PG::AmbiguousColumn: ERROR: column reference "created_at" is ambiguous
.The cause of the issue is in the following code snippet, It does not specify which table the columns belong to.
The text was updated successfully, but these errors were encountered: