SAP / go-ase

SAP ASE Database Client for Go
Apache License 2.0
25 stars 14 forks source link

Fix go transaction examples for databases with 'ddl in tran' #134

Closed ntnn closed 4 years ago

ntnn commented 4 years ago

Description

Some databases do not have the ddl in tran database option set, which would cause these examples to fail as no tables can be created. Since the examples should be option-agnostic the statements to create the relevant table are moved above the transaction opening.

I've also fixed some style issues while I was at it.

Related issues

Link any related issues here.

Tests