Closed simont closed 8 years ago
The issue was relating to calling C.free on error strings defined as literals (rather than dynamically malloc'd). You will need to use quotes for spaces to work in queries. I take that back, needs more investigation.
if objs, err := irods.QueryMeta("testattr = 'test again'"); err == nil {
// Success
} else {
// Fail
}
Yes, I tried with single quotes originally and it didn't solve the issue.
Thanks John, this now works with query strings with spaces in them, etc, I am passing the query string into GoRods with single quotes around the query string and that seems to do the trick.
S.
Calling Connection.QueryMeta() with a query string like "name = Bill" works fine, using a query string that looks like "name = Bill Smith" causes things to come crashing down. Quoting didn't seem to help (e.g. "name = 'Bill Smith'")
Here's the stack trace that I see, the first line is the log record for the POST to the search form, then the fun begins.
S.