mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
24 lines
699 B
TypeScript
24 lines
699 B
TypeScript
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/dialects/oracle/formatter.js
|
|
|
|
|
|
import Formatter from '../../formatter.js';
|
|
import { ReturningHelper } from './utils.js';
|
|
|
|
class Oracle_Formatter extends Formatter {
|
|
alias(first, second) {
|
|
return first + ' ' + second;
|
|
}
|
|
|
|
parameter(value, notSetValue) {
|
|
// Returning helper uses always ROWID as string
|
|
if (value instanceof ReturningHelper && this.client.driver) {
|
|
value = new this.client.driver.OutParam(this.client.driver.OCCISTRING);
|
|
} else if (typeof value === 'boolean') {
|
|
value = value ? 1 : 0;
|
|
}
|
|
return super.parameter(value, notSetValue);
|
|
}
|
|
}
|
|
|
|
export default Oracle_Formatter;
|