|
|
Choosing A Webhost: |
insert varchar/text fields limited to max 80 characters: msg#00084db.tds.freetds
Environment: MS-SQL 2003, TDS version 8.0, freetds 0.62.4, perl DBD::ODBC and DBI (current CPAN versions). doing something like:- my $sth = $dbh->prepare("insert into SBOL [XDESC_C] values(?)"); my $a = "soooooooooooooooooooooooooooooooooooommmmmmmmmmmmmmmmmmmmmmmmmmmmmeeeeeeeeeeeeeeeeeeeeeeeeeeeeevvvvvvvvvvvvvvvvvvery-long-string"; $sth->execute($a); will only cause the first 80 characters of $a into SBOL.XDESC_C. It does not seem to matter whether XDESC_C is declared as varchar(1000) or text (we would prefer text). All varchar fields with length > 80 and text fields have the data chopped at 80 characters. Tried all the obvious things like:- $dbh = DBI->connect('dbi:ODBC:cpa', $cpauser, $passwd, { RaiseError=>1, AutoCommit=>0, LongReadLen=>64*1024, LongTruncOk=>0, ChopBlanks=>1, } ); The same code, but running direct to a MySQL or Pg database (with different DBI dsn obviously) work just as expected. Any pointers? Dirk
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | insert varchar/text fields limited to max 80 characters, Dirk Koopman |
|---|---|
| Next by Date: | RE: insert varchar/text fields limited to max 80 characters, Piet De Jong |
| Previous by Thread: | RE: insert varchar/text fields limited to max 80 characters, Piet De Jong |
| Next by Thread: | Re: insert varchar/text fields limited to max 80 characters, James Vanns |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |