Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Set LONG data type using a Prepared Statement
  2. alter table table_name split partition default_partition values (' +
  3. id + ') into (  partition " + partitionName + ", partition
  4. default_partition) update indexes
  5.        
  6. ORA-14308: partition bound element must be one of: string, datetime or interval literal, number, or NULL
  7.        
  8. try {
  9.         id = Long.valueOf(unsafeId);
  10.         //do more validations here
  11.     } catch (NumberFormatException e) {
  12.         throw new RuntimeException("Not a valid input.");
  13.     }