« first day (3173 days earlier)      last day (1791 days later) » 

5:02 PM
posted on June 24, 2019 by ericlippert

One more time! Suppose we have our nominal distribution p that possibly has “black swans” and our helper distribution q which has the same support, but no black swans. We wish to compute the expected value of f when applied to samples … Continue reading →

 
5:24 PM
I've heard folks say "sequel", "ess queue ell", "squeal", "squirrel"...
I don't think I'd notice if someone snuck in a "sqwuh".
 
user10864482
skew :)
 
mr5
have you heard someone saying it's super qomplicated language?
 
user10864482
Woohaa. I won
 
I am usually here to learn things from all these nerd talks. and it works
 
guys need your help
-2
Q: {"Input string was not in a correct format."}

MaximiousI have a file for logging store procedure error to oracle database but at the time of executing the store procedure I'm facing error {"ORA-06502: PL/SQL: numeric or value error: character to number conversion error\nORA-06512: at line 1"} . Earlier I was using microsoft enterprise logging but now...

 
user10864482
5:39 PM
@ratna what is the issue now?
 
user10864482
I don't understand why THAT would work
cmd = adapter.InputField(cmd, "abcd1", logEntry.Priority, OracleDbType.Int32);
 
user10864482
your type is int but it's a string
 
user10864482
but maybe there is something i'm missing / don't understand
 
issue is {"Input string was not in a correct format."}
 
user10864482
@ratna well you try to put a string where it's supposed to be a int
 
5:43 PM
after changing all the codes from microsoft.enterprise.data
to oracle managed dataaccess
ok
so incorrect value
 
user10864482
yes, incorrect value
 
but where that i don't understand
 
user10864482
cmd = adapter.InputField(cmd, "abcd1", logEntry.Priority, OracleDbType.Int32);
 
user10864482
"abcd1" is a string but your argument is OracleDbType.Int32
 
user10864482
but looking at the code you provided, if it wasnt that one, you would have different formatting error with other like cmd = adapter.InputField(cmd, "abcd4", logEntry.TimeStamp, OracleDbType.TimeStamp);
 
5:48 PM
my store procedure is like this
create or replace PACKAGE BODY PKG_LOGGER
IS
PROCEDURE WRITELOG (LogID OUT INT,
EventID INT,
Priority INT,
Severity VARCHAR2,
Title VARCHAR2,
TimeOf DATE,
MachineName VARCHAR2,
AppDomainName VARCHAR2,
ProcessID VARCHAR2,
ProcessName VARCHAR2,
ThreadName VARCHAR2,
Win32ThreadId VARCHAR2,
MESSAGE VARCHAR2,
FormattedMessage VARCHAR2)
and my method is like this
OracleAdapter adapter = new OracleAdapter();
var con = adapter.OpenConnection();
var cmd = adapter.CreateSpCommand(con, this.writeLogStoredProcName);
cmd.Parameters.Add("abcd", OracleDbType.Int32, 4,ParameterDirection.Output);
cmd.Parameters.Add("abcd1", OracleDbType.Int32, logEntry.abcd1);

cmd.Parameters.Add("abcd2", OracleDbType.Int32,logEntry.abcd2);

cmd.Parameters.Add("abcd3", OracleDbType.Varchar2,32,ParameterDirection.Input,false,(byte)0, (byte)0, (string)null, DataRowVersion.Default, (object)logEntry.abcd3.ToString());
still i'm getting error
@user23333 any idea how to solve this error . I know it's silly question but tried everything and can't find any clue how to solve it
 
user10864482
@ratna I don't know how to tell you this but how do you expected to pass a string as parameter when you specifically provide an incompatible type to check?
 
ok . i didn't understood fully .
 
You can't give it a string
when it wants an integer
That's it
That's the whole problem
Either make that OracleDbType.Int32 into something else
or give it a number instead of this "abcd" business
 
according to you which line is throwing this error .
 
cmd.Parameters.Add("abcd", OracleDbType.Int32, 4,ParameterDirection.Output);
cmd.Parameters.Add("abcd1", OracleDbType.Int32, logEntry.abcd1);

cmd.Parameters.Add("abcd2", OracleDbType.Int32,logEntry.abcd2);
all of thsee
because you're giving it a string
and then telling it to expect an integer
Your event IDs and priorities are numbers
you have to give it numbers
you can't give it not numbers
Replace those "abcd" guys with, like, 123
 
user10864482
6:57 PM
796 lines of code later, it's done.
 
7:09 PM
posted on June 24, 2019 by Phil Haack

When you merge two branches, there may be conflicting changes between the branches. Git can often resolve these differences without intervention. For example, when each branch has changes to different files or lines of code.

 

« first day (3173 days earlier)      last day (1791 days later) »