Tuesday, May 3, 2011

Swelling Ankles From Drinking Alcohol

JDBC adapter

When using a JDBC adapter to dump data directly into a database, there are certain types of data that must be treated specifically. One type is the date. By default, when passing a field of type xsd: dateTime, eg in the conversion process is passed the content of this field like a string and the database returns an error like "java.sql . SQLException: literal does not match format string . " In order to not forget the literal content, it is necessary to define the field as "xsd: string" and add the parameter "hasQuot" with the default "No".

Thus

indicate not passed as literal (double quotes).

proxy code would send the following (for TIMESTAMP fields, type the DATE using another function):

Some

related errors (java.sql.SQLException) : :
  • date format Not Recognized: Invalid format (other than YYYY-MM-DD HH24: MI: SS)
  • a non-numeric character to numeric WAS WHERE WAS found Expected: expression is being passed as a string. You are not going hasQuot parameter with value 'No'.
  • literal does not match format string: last format does not fit the pattern associated (eg 2011-05-03-08:40:55 -> YYYY-MM-DD HH24: MI: SS )

Reference Links:

0 comments:

Post a Comment