Skip to content
New issue

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

Unable to insert host_pci_device #86

Closed
mmulesa opened this issue Feb 14, 2019 · 5 comments
Closed

Unable to insert host_pci_device #86

mmulesa opened this issue Feb 14, 2019 · 5 comments
Assignees
Labels
Milestone

Comments

@mmulesa
Copy link

mmulesa commented Feb 14, 2019

Server version: 8.0.15 MySQL Community Server
Unable to insert, issue in column 'function', no column shielding in query

trace
Got 0 host_pci_device objects from DB

Storing host_pci_device[] failed: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, class_id, device_id, device_name, sub_device_id, vendor_id, vendor_nam' at line 1, query was: INSERT INTO host_pci_device (id, host_uuid, bus, slot, function, class_id, device_id, device_name, sub_device_id, vendor_id, vendor_name, sub_vendor_id, parent_bridge, vcenter_uuid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) {array (
'id' => '0000:00:00.0',
'host_uuid' => '̿{)\ N',
'bus' => '' . "\0" . '',
'slot' => '' . "\0" . '',
'function' => '' . "\0" . '',
'class_id' => 1536,
'device_id' => 3584,
'device_name' => 'Xeon E7 v2/Xeon E5 v2/Core i7 DMI2',
'sub_device_id' => 257,
'vendor_id' => -32634,
'vendor_name' => 'Intel Corporation',
'sub_vendor_id' => 4407,
'parent_bridge' => NULL,
'vcenter_uuid' => 'FmTh!P',
)}

@mmulesa
Copy link
Author

mmulesa commented Feb 14, 2019

HostPciDevice.php
worked for me

function in "`"

protected $defaultProperties
'function' => null

protected $propertyMap
'function' => 'function'

@Thomas-Gelf Thomas-Gelf self-assigned this Mar 19, 2019
@Thomas-Gelf Thomas-Gelf added this to the v1.1.0 milestone Mar 19, 2019
@Thomas-Gelf
Copy link
Contributor

Thanks for reporting this! I faced this before, but then forgot about it.

@rychannel
Copy link

Any updates / workarounds for this?

@Thomas-Gelf
Copy link
Contributor

@rychannel: does the workaround shown by @mmulesa work for you?

@rychannel
Copy link

To be honest, looking at their post, I'm not exactly sure what I'm supposed to do.

@Thomas-Gelf Thomas-Gelf modified the milestones: v1.1.0, v1.2.0 Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants