mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Moments: Error while removing duplicate moments #1292
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jakubtopic on GitHub (Jan 13, 2022).
I noticed that I get the following error many times after importing photos:
I'm not sure what impact this has on the functionality of the app, it seems to me that Moments work just fine. Anyway, I think I have identified the faulty query:
github.com/photoprism/photoprism@0f0c0aaa0b/internal/query/moments.go (L276)A similar query was addressed in this issue: #599, and it was also related to MySQL database, as in my case.
Photoprism version: 220107-f5b7ef83-Linux-x86_64
Database server: MySQL 8.0.27
@lastzero commented on GitHub (Jan 13, 2022):
Does it work with MariaDB 10.5.12+?
@lastzero commented on GitHub (Jan 13, 2022):
https://stackoverflow.com/questions/45494/mysql-error-1093-cant-specify-target-table-for-update-in-from-clause 👀
@lastzero commented on GitHub (Jan 13, 2022):
https://mariadb.com/kb/en/delete/#deleting-from-the-same-source-and-target 🧐
@lastzero commented on GitHub (Jan 14, 2022):