Skip to content

Commit cb9b55d

Browse files
committed
Fix tabs
1 parent 28f2ea6 commit cb9b55d

File tree

11 files changed

+235
-239
lines changed

11 files changed

+235
-239
lines changed

source/mysql/commands.d

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/++
1+
/++
22
Use a DB via plain SQL statements.
33
44
Commands that are expected to return a result set - queries - have distinctive
@@ -100,7 +100,7 @@ unittest
100100
chunkSize = 100;
101101
assert(cast(int)(totalSize / chunkSize) * chunkSize == totalSize);
102102
auto columnSpecial = ColumnSpecialization(0, 0xfc, chunkSize, &receiver);
103-
103+
104104
received = null;
105105
lastValueOfFinished = false;
106106
value = cn.queryValue(selectSQL, [columnSpecial]);
@@ -110,7 +110,7 @@ unittest
110110
//assert(lastValueOfFinished == true);
111111
//assert(received == data);
112112
}
113-
113+
114114
// Use ColumnSpecialization with sql string,
115115
// and totalSize as a non-multiple of chunkSize
116116
{
@@ -734,7 +734,7 @@ package Nullable!Variant queryValueImpl(ColumnSpecialization[] csa, Connection c
734734
{
735735
auto row = results.front;
736736
results.close();
737-
737+
738738
if(row.length == 0)
739739
return Nullable!Variant();
740740
else
@@ -750,17 +750,17 @@ unittest
750750
import mysql.connection;
751751
import mysql.test.common;
752752
mixin(scopedCn);
753-
753+
754754
cn.exec("DROP TABLE IF EXISTS `execOverloads`");
755755
cn.exec("CREATE TABLE `execOverloads` (
756756
`i` INTEGER,
757757
`s` VARCHAR(50)
758758
) ENGINE=InnoDB DEFAULT CHARSET=utf8");
759-
759+
760760
immutable prepareSQL = "INSERT INTO `execOverloads` VALUES (?, ?)";
761-
761+
762762
// Do the inserts, using exec
763-
763+
764764
// exec: const(char[]) sql
765765
assert(cn.exec("INSERT INTO `execOverloads` VALUES (1, \"aa\")") == 1);
766766
assert(cn.exec(prepareSQL, 2, "bb") == 1);
@@ -774,18 +774,18 @@ unittest
774774
assert(cn.exec(prepared, 5, "ee") == 1);
775775
assert(prepared.getArg(0) == 5);
776776
assert(prepared.getArg(1) == "ee");
777-
777+
778778
assert(cn.exec(prepared, [Variant(6), Variant("ff")]) == 1);
779779
assert(prepared.getArg(0) == 6);
780780
assert(prepared.getArg(1) == "ff");
781-
781+
782782
// exec: bcPrepared sql
783783
auto bcPrepared = cn.prepareBackwardCompatImpl(prepareSQL);
784784
bcPrepared.setArgs(7, "gg");
785785
assert(cn.exec(bcPrepared) == 1);
786786
assert(bcPrepared.getArg(0) == 7);
787787
assert(bcPrepared.getArg(1) == "gg");
788-
788+
789789
// Check results
790790
auto rows = cn.query("SELECT * FROM `execOverloads`").array();
791791
assert(rows.length == 7);
@@ -822,7 +822,7 @@ unittest
822822
import mysql.connection;
823823
import mysql.test.common;
824824
mixin(scopedCn);
825-
825+
826826
cn.exec("DROP TABLE IF EXISTS `queryOverloads`");
827827
cn.exec("CREATE TABLE `queryOverloads` (
828828
`i` INTEGER,
@@ -831,7 +831,7 @@ unittest
831831
cn.exec("INSERT INTO `queryOverloads` VALUES (1, \"aa\"), (2, \"bb\"), (3, \"cc\")");
832832

833833
immutable prepareSQL = "SELECT * FROM `queryOverloads` WHERE `i`=? AND `s`=?";
834-
834+
835835
// Test query
836836
{
837837
Row[] rows;

0 commit comments

Comments
 (0)