Hello! I have this problem. I populated the database using PointFromText and select queries work correctly. But I can't insert a new Point into the table.
_, err := tx.ExecContext(ctx, `
INSERT INTO localities (
title,
coords
)
VALUES (?, ST_GeomFromWKB(?))
`,
locality.Title,
wkb.Value(locality.Coords),
)
Error 4079: Illegal parameter data type char for operation 'st_geometryfromwkb'
Hello! I have this problem. I populated the database using PointFromText and select queries work correctly. But I can't insert a new Point into the table.
Error 4079: Illegal parameter data type char for operation 'st_geometryfromwkb'