Tractor Talk Discussion Board |
Re: Computer advise please
[ Expand ] [ View Follow Ups ] [ Post Followup ] [ Return to Forum ]
Posted by mrunion on August 04, 2005 at 07:14:21 from (216.145.89.2):
In Reply to: Computer advise please posted by Brokenwrench on August 04, 2005 at 05:40:42:
To attempt to answer the "why it does this" question: Some databases (most databases?) use the apostrophe/single tick (') as a string separator. That means that the TEXT of your reply goes into these string separators when it is put into the database. For example: 'Hello, guys.' If one types apostrophes and they aren't "escaped" by doubling them, the string becomes corrupted and the database insert will fail. Example: 'That's mine.' In the above example, the database server looks at the string, says the "THAT" part is the string and "S MINE." has just been tacked on the end and is invalid. Most schemes handle this by pre-processing your strings and doubling the apostrophes: Example: 'That''s mine.' Two apostrophes together indicate to the database that a SINGLE apostrophe should be inserted LITTERALLY into the string. Still, other ways around the problem are to replace all single apostrophes with a double-quote -- as you have seen. I am NOT saying this is what is actually happening, just tletting you guys know what *may* be happening. Thanx, Matt
Follow Ups:
Home
| Forums
Today's Featured Article -
An AC Model M Crawler - by Anthony West. Neil Atkins is a man in his late thirties, a mild and patient character who talks fondly of his farming heritage. He farms around a hundred and fifty acres of arable land, in a village called Southam, located just outside Leamington Spa in Warwickshire. The soil is a rich dark brown and is well looked after. unlike some areas in the midlands it is also fairly flat, broken only by hedgerows and the occasional valley and brook. A copse of wildbreaking silver birch and oak trees surround the top si
... [Read Article]
Latest Ad:
18-32 Case Cross Motor
[More Ads]
Copyright © 1997-2025 Yesterday's Tractor Co. All Rights Reserved. Reproduction of any part of this website, including design and content, without written permission is strictly prohibited. Trade Marks and Trade Names contained and used in this Website are those of others, and are used in this Website in a descriptive sense to refer to the products of others. Use of this Web site constitutes acceptance of our User Agreement and Privacy Policy TRADEMARK DISCLAIMER: Tradenames and Trademarks referred to within Yesterday's Tractor Co. products and within the Yesterday's Tractor Co. websites are the property of their respective trademark holders. None of these trademark holders are affiliated with Yesterday's Tractor Co., our products, or our website nor are we sponsored by them. John Deere and its logos are the registered trademarks of the John Deere Corporation. Agco, Agco Allis, White, Massey Ferguson and their logos are the registered trademarks of AGCO Corporation. Case, Case-IH, Farmall, International Harvester, New Holland and their logos are registered trademarks of CNH Global N.V. Yesterday's Tractors - Antique Tractor HeadquartersWebsite Accessibility Policy |
|