Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Inserting to a bigint data type in Sybase using prepare statements

by poj (Abbot)
on Jul 07, 2017 at 14:29 UTC ( [id://1194507]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Inserting to a bigint data type in Sybase using prepare statements
in thread Inserting to a bigint data type in Sybase using prepare statements

What version of Sybase, Perl and DBD::Sybase are you using ?

  • Comment on Re^3: Inserting to a bigint data type in Sybase using prepare statements

Replies are listed 'Best First'.
Re^4: Inserting to a bigint data type in Sybase using prepare statements
by j_ochoa (Novice) on Jul 10, 2017 at 06:36 UTC

    Hi poj,

    these are the versions:

    Perl 5.14

    DBD::Sybase 1.15

    Sybase: Adaptive Server Enterprise/15.7.0/EBF 22644 SMP SP52

    Thanks!

      Using CONVERT, did you remove the BIGINT type from the bind statement ?

      my $insert_sth = " INSERT INTO some_table ( transaction_id, ccn_masked, cardholder_name, exp_month, exp_year,card_type, token_id ) VALUES (?, ?, ?, ?, ?, ?, CONVERT(BIGINT,?) )"; . . . $q_result->bind_param(7, "5114780000000000271");
      poj
        Yes, I have tried with data type BIGINT removed as well. JO

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1194507]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found