All i have a strange issue, when i try and enter some strings into a database using DBD::Oracle and DBI i get the PIPE symbol entered into the same column.
if($debug){&writelog(1,"INFO: Sent Order Order id = $msgsendid
+: \"$sendclient,$sendordid,$sendlotsfill,$sendfillprice,$sendlotsact,
+$sendtransno,$send
dborderid,$sendlotsordered,$sendamedorderid,$sendorderprice,$sendtrade
+rid,$sendbuysell,$sendconsid,$sendexchange,$sendfilltype,$sendlotssti
+llopen,$sendmaturi
ty,$sendordertype,$sendaction,$sendacc,$sendtimetransmis,$appiamsgdiff
+,$appiamsgdiffsecs\" Full String");}
# Now we have all the data we insert into the database table
my $sql = qq{INSERT INTO $dbtable VALUES(GFMIS.FIXCUSTOMERPERF
+_SEQ.nextval,'$recclient','$recordid','$senddborderid','$reclotsorder
+ed',
+ '$recorderprice','$rectraderid','$recbuysell','$recconsid','$rec
+ordertype',
+ '$recaction','$recacc','$rectimetransmis','$sendlotsfill','$send
+fillprice',
+ '$sendfilltype','$sendtimetransmis','$appiamsgdiff','$appiamsgdi
+ffsecs')};
my $sth = $dbh->prepare($sql);
$sth->execute();
$sth->finish;
The log shows this before it enters it.
20-12-2005 11:38: INFO: Sent Order Order id = TESTER-5-send: "TESTER,f
+ud646_20051118,0.0000,0.00000000,0.0000,1049,1317260662,5.0000,0,1461
+0.065,DESRISKGATEW
AY,Buy,ANYTHING,0,Ack,5.0000,200512,Symbol,Report,ATOP11,20051118-05:0
+8:10,1812,1.812" Full String
But in the database my columns look like this.
FIXID | CLIENTNAME | CLIENTORDERID |
8 | TESTER | fud646_20051118| |
So the "fud646_20051118|" should be "fud646_20051118"
why is the pipe getting inserted. ?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.