public long createLO ( int mode ) throws SQLException { if ( conn . getAutoCommit ( ) ) { throw new PSQLException ( GT . tr ( "Large Objects may not be used in auto-commit mode." ) , PSQLState . NO_ACTIVE_SQL_TRANSACTION ) ; } FastpathArg [ ] args = new FastpathArg [ 1 ] ; args [ 0 ] = new FastpathArg ( mode ) ; return fp . getOID ( "lo_creat" , args ) ; }
This creates a large object returning its OID .