#sql upload to database error !

2 messages · Page 1 of 1 (latest)

plush cove
#

Hello,
I am trying to upload a data (struct with a pointer) to a mariadb database but i keep prompted with an error on this line:

_, err = db.Exec("INSERT INTO individuals (account_status, account_id, account_type, account_value, account_holder_firstname, account_holder_lastname, account_holder_birth_day, account_holder_birth_month, account_holder_birth_year, account_holder_address_street, account_holder_address_city, account_holder_address_state, account_holder_address_zip, account_holder_contact_phone, account_holder_contact_email) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", data.AccountStatus, data.AccountID, data.AccountType, data.AccountValue, data.AccountHolder.FirstName, data.AccountHolder.LastName, data.AccountHolder.BrithDate.Day, data.AccountHolder.BrithDate.Month, data.AccountHolder.BrithDate.Year, data.AccountHolder.Address.Street, data.AccountHolder.Address.City, data.AccountHolder.Address.State, data.AccountHolder.Address.Zip, data.AccountHolder.Contact.Phone, data.AccountHolder.Contact.Email)

and the error:

Cannot get geometry object from data you send to the GEOMETRY field
sinful osprey
#

can you log the generated query?