Skip to content

Inappropriate varchar2(4000) type for Edm.String at case of oracle #4

@SlavaUtesinov

Description

@SlavaUtesinov

I created on my own draft of jsreport-oracle-store and when I tried to test it with jsreport I immediately faced a problem at stage of creating sample templates ("sample-template": { "createSamples": true }). The reason is a type selected for Edm.String at case of oracle database is varchar2(4000) (oracle.js). I know, it is restriction of oracle, but on the other hand it is obviously not enough (for example, you use varchar(max) for mssql) even for your own templates. Probably you should use CLOB type for unlimited string content, but at this case you also have to construct another sql scripts for them, because scripts like where clobColumnName = 'value' is not supported for CLOB, moreover possibly some castings to and from CLOB type also have to be done.

module.exports = {
  'Edm.String': 'varchar2(4000)',
  'Edm.DateTimeOffset': 'timestamp',
  'Edm.Boolean': 'number(1)',
  'Edm.Int32': 'number',
  'Edm.Int64': 'number',
  'Edm.Decimal': 'number(18,4)',
  'Edm.Binary': 'clob'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions