Bug 2236786

Summary: Bash completion is broken: "Error: in prepare, no such column: mutter%"
Product: [Fedora] Fedora Reporter: Michael Catanzaro <mcatanza>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: daniel.mach, jkolarik, jmracek, jrohel, mblaha, packaging-team-maint, pkratoch, rpm-software-management
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-01 14:17:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Catanzaro 2023-09-01 14:00:42 UTC
I typed `sudo dnf install mutter` then hit tab to invoke bash completion. A strange error message including an SQL query is printed:

$ sudo dnf install mutterError: in prepare, no such column: mutter%
  select pkg from available where pkg like "mutter%" and pkg not in (select pkg 
                             error here ---^
-^C

This is using dnf-0:4.16.2-2.fc39

Reproducible: Always

Comment 1 Jan Kolarik 2023-09-01 14:17:51 UTC
Hello, this issue is already reported in https://bugzilla.redhat.com/show_bug.cgi?id=2232052. In Rawhide, it should be already fixed in dnf-4.17.0-1.fc40 (see https://bodhi.fedoraproject.org/updates/FEDORA-2023-8782a26bc2). In F39, it should be fixed in about two weeks after the beta freeze is unlocked.

*** This bug has been marked as a duplicate of bug 2232052 ***