API 1 Database question

Is using DatabaseRecord with Database.InsertRecord the same as using a prepared statement for doing an insert security wise?

I always assumed that it was, but I just realized I do not really know if that is the case, even though it is reasonable to expect it to be.

If it matters, I’m using Postgres.

Thanks,
Karen

Yes, that should be exactly the same, but to confirm, try inserting a record where one text field contains a single apostrophe. InsertRecord shouldn’t care.

1 Like