Skip to Content.
Sympa Menu

freetds - Re: Adding Strings with quote's in?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: brlewis AT alum.mit.edu
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Adding Strings with quote's in?
  • Date: 14 Feb 2000 09:39:06 -0500


Francis Smit <francis AT oztel.com> writes:

> there doesn't appear to be a function of this sort yet,
> maybe if I find the time I'll write text2SQLServertext,
> hopefully with a better name.

I would suggest naming it sql_string_escape() and having this behavior:
==> "NULL" for a null argument
==> "'Sheep''s clothing'" for non-null args.

--
Bruce R. Lewis <URL:http://web.mit.edu/brlewis/www/>




Archive powered by MHonArc 2.6.24.

Top of Page