bash-4.1$ gcc -o connect1 connect1.c
/tmp/ccWXYMo8.o: In function `extract_error':
connect1.c:(.text+0x93): undefined reference to `SQLGetDiagRec'
/tmp/ccWXYMo8.o: In function `main':
connect1.c:(.text+0x103): undefined reference to `SQLAllocHandle'
connect1.c:(.text+0x11e): undefined reference to `SQLSetEnvAttr'
connect1.c:(.text+0x133): undefined reference to `SQLAllocHandle'
connect1.c:(.text+0x17b): undefined reference to `SQLDriverConnect'
connect1.c:(.text+0x1e4): undefined reference to `SQLDisconnect'
connect1.c:(.text+0x231): undefined reference to `SQLFreeHandle'
connect1.c:(.text+0x242): undefined reference to `SQLFreeHandle'
collect2: ld returned 1 exit status
bash-4.1$ rm connect1
bash-4.1$ rm connect1
bash-4.1$ make
gcc -o connect1 connect1.c -l odbc
bash-4.1$ ls -l connect1
-rwxr-xr-x. 1 brock users 9379 Feb 16 19:01 connect1
bash-4.1$ connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver 'MySQL' in system information.
bash-4.1$ odbcinst -q -s
[Social]
bash-4.1$ odbcinst -q -d
[PostgreSQL]
[MySQL]
bash-4.1$ rpm -qa | grep unixODBC
unixODBC-devel-2.2.14-12.el6_3.x86_64
unixODBC-2.2.14-12.el6_3.x86_64
bash-4.1$ sudo unixODBC-devel.i386
[sudo] password for brock: 
sudo: unixODBC-devel.i386: command not found
bash-4.1$ sudo unixODBC-devel.i686
sudo: unixODBC-devel.i686: command not found
bash-4.1$ sudo yum install unixODBC-devel.i686
Loaded plugins: refresh-packagekit, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unixODBC-devel.i686 0:2.2.14-12.el6_3 will be installed
--> Processing Dependency: libodbctxtS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libmimerS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libboundparam.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: liboplodbcS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libodbcnnS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libgtrtst.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libtdsS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libsapdbS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libesoobS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libodbcminiS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libnn.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: liboraodbcS.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libodbcdrvcfg2S.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libodbccr.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libodbcdrvcfg1S.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Processing Dependency: libtemplate.so.2 for package: unixODBC-devel-2.2.14-12.el6_3.i686
--> Running transaction check
---> Package unixODBC.i686 0:2.2.14-12.el6_3 will be installed
--> Processing Dependency: libltdl.so.7 for package: unixODBC-2.2.14-12.el6_3.i686
--> Running transaction check
---> Package libtool-ltdl.i686 0:2.2.6-15.5.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch     Version             Repository                Size
================================================================================
Installing:
 unixODBC-devel     i686     2.2.14-12.el6_3     rhel-x86_64-server-6      53 k
Installing for dependencies:
 libtool-ltdl       i686     2.2.6-15.5.el6      rhel-x86_64-server-6      45 k
 unixODBC           i686     2.2.14-12.el6_3     rhel-x86_64-server-6     382 k

Transaction Summary
================================================================================
Install       3 Package(s)

Total download size: 480 k
Installed size: 0  
Is this ok [y/N]: y
Downloading Packages:
(1/3): libtool-ltdl-2.2.6-15.5.el6.i686.rpm              |  45 kB     00:00     
(2/3): unixODBC-2.2.14-12.el6_3.i686.rpm                 | 382 kB     00:00     
(3/3): unixODBC-devel-2.2.14-12.el6_3.i686.rpm           |  53 kB     00:00     
--------------------------------------------------------------------------------
Total                                           570 kB/s | 480 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libtool-ltdl-2.2.6-15.5.el6.i686                             1/3 
  Installing : unixODBC-2.2.14-12.el6_3.i686                                2/3 
  Installing : unixODBC-devel-2.2.14-12.el6_3.i686                          3/3 
  Verifying  : libtool-ltdl-2.2.6-15.5.el6.i686                             1/3 
  Verifying  : unixODBC-2.2.14-12.el6_3.i686                                2/3 
  Verifying  : unixODBC-devel-2.2.14-12.el6_3.i686                          3/3 

Installed:
  unixODBC-devel.i686 0:2.2.14-12.el6_3                                         

Dependency Installed:
  libtool-ltdl.i686 0:2.2.6-15.5.el6       unixODBC.i686 0:2.2.14-12.el6_3      

Complete!
bash-4.1$ ./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver 'MySQL' in system information.
bash-4.1$ !!
./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

01000:1:0:[unixODBC][Driver Manager]Can't open lib '/usr/lib/libmyodbc5.so' : file not found
bash-4.1$ !!
./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver '/usr/lib64/libmyodbc5.so' in system information.
bash-4.1$ !!
./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver '/usr/lib64/libmyodbc5.so' in system information.
bash-4.1$ osql
bash: osql: command not found
bash-4.1$ ./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver '/usr/lib64/libmyodbc5.so' in system information.
bash-4.1$ !!
./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver '/usr/lib64/libmyodbc5.so' in system information.
bash-4.1$ !!
./connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

IM003:1:0:[unixODBC][MySQL][ODBC 5.1 Driver]Could not find driver 'MySQL' in system information.
bash-4.1$ !!
./connect1
Ready to connect
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Database=socialDB;UID=csci343;
bash-4.1$ mv /home/brock/.odbc.ini ODBC.INI
bash-4.1$ ./connect1
Ready to connect
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Database=socialDB;UID=csci343;
bash-4.1$ make
gcc -o connect1 connect1.c -l odbc
bash-4.1$ ./connect1
Ready to connect
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
bash-4.1$ ./fetch
Row 0
  Column 1 : 
  Column 2 : 
  Column 3 : Friend
  Column 4 : TABLE
  Column 5 : 
Row 1
  Column 1 : 
  Column 2 : 
  Column 3 : Highschooler
  Column 4 : TABLE
  Column 5 : 
Row 2
  Column 1 : 
  Column 2 : 
  Column 3 : Likes
  Column 4 : TABLE
  Column 5 : 
bash-4.1$ fetch
bash-4.1$ !!
fetch
number of columns is 0
, columnsbash-4.1$ !!
fetch
Prepared worked
number of columns is 0
, columnsbash-4.1$ !!
fetch
number of columns is 133
, columnsbash-4.1$ !!
fetch
number of columns is 0
bash-4.1$ connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

HY090:1:0:[unixODBC][Driver Manager]Invalid string or buffer length
bash-4.1$ !!
connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

HY090:1:0:[unixODBC][Driver Manager]Invalid string or buffer length
bash-4.1$ !!
connect1
Ready to connect
Failed to connect

The driver reported the following diagnostics whilst running SQLDriverConnect

HY090:1:0:[unixODBC][Driver Manager]Invalid string or buffer length
bash-4.1$ !!
connect1
Ready to connect
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
bash-4.1$ !!
connect1
Ready to connect
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
bash-4.1$ fetch
number of columns is 0
bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
number of columns is 0
bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
Prepared string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
number of columns is 2
bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 2
bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 5
Row 0
  Column 1 : 
  Column 2 : 
  Column 3 : Friend
  Column 4 : TABLE
  Column 5 : 
Row 1
  Column 1 : 
  Column 2 : 
  Column 3 : Highschooler
  Column 4 : TABLE
  Column 5 : 
Row 2
  Column 1 : 
  Column 2 : 
  Column 3 : Likes
  Column 4 : TABLE
  Column 5 : 
bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 5
Row 0
  Column 1 : 
  Column 2 : 
  Column 3 : Friend
  Column 4 : TABLE
  Column 5 : 
Fetched
Row 1
  Column 1 : 
  Column 2 : 
  Column 3 : Highschooler
  Column 4 : TABLE
  Column 5 : 
Fetched
Row 2
  Column 1 : 
  Column 2 : 
  Column 3 : Likes
  Column 4 : TABLE
  Column 5 : 
Fetched
bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 5
Fetched
Row 0
  Column 1 : 
  Column 2 : 
  Column 3 : Friend
  Column 4 : TABLE
  Column 5 : 
Fetched
Row 1
  Column 1 : 
  Column 2 : 
  Column 3 : Highschooler
  Column 4 : TABLE
  Column 5 : 
Fetched
Row 2
  Column 1 : 
  Column 2 : 
  Column 3 : Likes
  Column 4 : TABLE
  Column 5 : 
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 2
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ !!
fetch
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 2
Fetched
Row 0
  Column 1 : Jordan
  Column 2 : Tiffany
Fetched
Row 1
  Column 1 : Andrew
  Column 2 : Kris
Fetched
Row 2
  Column 1 : Andrew
  Column 2 : Austin
Fetched
Row 3
  Column 1 : Andrew
  Column 2 : Jordan
Fetched
Row 4
  Column 1 : Alexis
  Column 2 : Gabriel
Fetched
Row 5
  Column 1 : Alexis
  Column 2 : Jessica
Fetched
Row 6
  Column 1 : Gabriel
  Column 2 : Jessica
Fetched
Row 7
  Column 1 : Jessica
  Column 2 : Kyle
Fetched
Row 8
  Column 1 : Austin
  Column 2 : Kyle
Fetched
Row 9
  Column 1 : Jordan
  Column 2 : Logan
Fetched
Row 10
  Column 1 : Gabriel
  Column 2 : Jordan
Fetched
Row 11
  Column 1 : Cassandra
  Column 2 : Gabriel
Fetched
Row 12
  Column 1 : Alexis
  Column 2 : Tiffany
Fetched
Row 13
  Column 1 : Alexis
  Column 2 : Cassandra
Fetched
Row 14
  Column 1 : Andrew
  Column 2 : Gabriel
Fetched
Row 15
  Column 1 : Haley
  Column 2 : Kris
Fetched
Row 16
  Column 1 : Brittany
  Column 2 : Kris
Fetched
Row 17
  Column 1 : Brittany
  Column 2 : Haley
Fetched
Row 18
  Column 1 : Jordan
  Column 2 : Kyle
Fetched
Row 19
  Column 1 : John
  Column 2 : Logan
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ listfriends 
Connected
Returned connection string was:
	DRIVER={MySQL};Server=joe.cs.unca.edu;Port=3306;Database=socialDB;UID=csci343;
Prepared
number of columns is 2
Fetched
Row 4196608
  Column 1 : Jordan
  Column 2 : Tiffany
Fetched
Row 4196609
  Column 1 : Andrew
  Column 2 : Kris
Fetched
Row 4196610
  Column 1 : Andrew
  Column 2 : Austin
Fetched
Row 4196611
  Column 1 : Andrew
  Column 2 : Jordan
Fetched
Row 4196612
  Column 1 : Alexis
  Column 2 : Gabriel
Fetched
Row 4196613
  Column 1 : Alexis
  Column 2 : Jessica
Fetched
Row 4196614
  Column 1 : Gabriel
  Column 2 : Jessica
Fetched
Row 4196615
  Column 1 : Jessica
  Column 2 : Kyle
Fetched
Row 4196616
  Column 1 : Austin
  Column 2 : Kyle
Fetched
Row 4196617
  Column 1 : Jordan
  Column 2 : Logan
Fetched
Row 4196618
  Column 1 : Gabriel
  Column 2 : Jordan
Fetched
Row 4196619
  Column 1 : Cassandra
  Column 2 : Gabriel
Fetched
Row 4196620
  Column 1 : Alexis
  Column 2 : Tiffany
Fetched
Row 4196621
  Column 1 : Alexis
  Column 2 : Cassandra
Fetched
Row 4196622
  Column 1 : Andrew
  Column 2 : Gabriel
Fetched
Row 4196623
  Column 1 : Haley
  Column 2 : Kris
Fetched
Row 4196624
  Column 1 : Brittany
  Column 2 : Kris
Fetched
Row 4196625
  Column 1 : Brittany
  Column 2 : Haley
Fetched
Row 4196626
  Column 1 : Jordan
  Column 2 : Kyle
Fetched
Row 4196627
  Column 1 : John
  Column 2 : Logan
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ listfriends
Connected
Prepared
number of columns is 2
Fetched
Row 0
  Column 1 : Jordan
  Column 2 : Tiffany
Fetched
Row 1
  Column 1 : Andrew
  Column 2 : Kris
Fetched
Row 2
  Column 1 : Andrew
  Column 2 : Austin
Fetched
Row 3
  Column 1 : Andrew
  Column 2 : Jordan
Fetched
Row 4
  Column 1 : Alexis
  Column 2 : Gabriel
Fetched
Row 5
  Column 1 : Alexis
  Column 2 : Jessica
Fetched
Row 6
  Column 1 : Gabriel
  Column 2 : Jessica
Fetched
Row 7
  Column 1 : Jessica
  Column 2 : Kyle
Fetched
Row 8
  Column 1 : Austin
  Column 2 : Kyle
Fetched
Row 9
  Column 1 : Jordan
  Column 2 : Logan
Fetched
Row 10
  Column 1 : Gabriel
  Column 2 : Jordan
Fetched
Row 11
  Column 1 : Cassandra
  Column 2 : Gabriel
Fetched
Row 12
  Column 1 : Alexis
  Column 2 : Tiffany
Fetched
Row 13
  Column 1 : Alexis
  Column 2 : Cassandra
Fetched
Row 14
  Column 1 : Andrew
  Column 2 : Gabriel
Fetched
Row 15
  Column 1 : Haley
  Column 2 : Kris
Fetched
Row 16
  Column 1 : Brittany
  Column 2 : Kris
Fetched
Row 17
  Column 1 : Brittany
  Column 2 : Haley
Fetched
Row 18
  Column 1 : Jordan
  Column 2 : Kyle
Fetched
Row 19
  Column 1 : John
  Column 2 : Logan
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ listfriends
Prepared
number of columns is 2
Fetched
Row 0
  Column 1 : Jordan
  Column 2 : Tiffany
Fetched
Row 1
  Column 1 : Andrew
  Column 2 : Kris
Fetched
Row 2
  Column 1 : Andrew
  Column 2 : Austin
Fetched
Row 3
  Column 1 : Andrew
  Column 2 : Jordan
Fetched
Row 4
  Column 1 : Alexis
  Column 2 : Gabriel
Fetched
Row 5
  Column 1 : Alexis
  Column 2 : Jessica
Fetched
Row 6
  Column 1 : Gabriel
  Column 2 : Jessica
Fetched
Row 7
  Column 1 : Jessica
  Column 2 : Kyle
Fetched
Row 8
  Column 1 : Austin
  Column 2 : Kyle
Fetched
Row 9
  Column 1 : Jordan
  Column 2 : Logan
Fetched
Row 10
  Column 1 : Gabriel
  Column 2 : Jordan
Fetched
Row 11
  Column 1 : Cassandra
  Column 2 : Gabriel
Fetched
Row 12
  Column 1 : Alexis
  Column 2 : Tiffany
Fetched
Row 13
  Column 1 : Alexis
  Column 2 : Cassandra
Fetched
Row 14
  Column 1 : Andrew
  Column 2 : Gabriel
Fetched
Row 15
  Column 1 : Haley
  Column 2 : Kris
Fetched
Row 16
  Column 1 : Brittany
  Column 2 : Kris
Fetched
Row 17
  Column 1 : Brittany
  Column 2 : Haley
Fetched
Row 18
  Column 1 : Jordan
  Column 2 : Kyle
Fetched
Row 19
  Column 1 : John
  Column 2 : Logan
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ !!
listfriends
number of columns is 2
Fetched
Row 0
  Column 1 : Jordan
  Column 2 : Tiffany
Fetched
Row 1
  Column 1 : Andrew
  Column 2 : Kris
Fetched
Row 2
  Column 1 : Andrew
  Column 2 : Austin
Fetched
Row 3
  Column 1 : Andrew
  Column 2 : Jordan
Fetched
Row 4
  Column 1 : Alexis
  Column 2 : Gabriel
Fetched
Row 5
  Column 1 : Alexis
  Column 2 : Jessica
Fetched
Row 6
  Column 1 : Gabriel
  Column 2 : Jessica
Fetched
Row 7
  Column 1 : Jessica
  Column 2 : Kyle
Fetched
Row 8
  Column 1 : Austin
  Column 2 : Kyle
Fetched
Row 9
  Column 1 : Jordan
  Column 2 : Logan
Fetched
Row 10
  Column 1 : Gabriel
  Column 2 : Jordan
Fetched
Row 11
  Column 1 : Cassandra
  Column 2 : Gabriel
Fetched
Row 12
  Column 1 : Alexis
  Column 2 : Tiffany
Fetched
Row 13
  Column 1 : Alexis
  Column 2 : Cassandra
Fetched
Row 14
  Column 1 : Andrew
  Column 2 : Gabriel
Fetched
Row 15
  Column 1 : Haley
  Column 2 : Kris
Fetched
Row 16
  Column 1 : Brittany
  Column 2 : Kris
Fetched
Row 17
  Column 1 : Brittany
  Column 2 : Haley
Fetched
Row 18
  Column 1 : Jordan
  Column 2 : Kyle
Fetched
Row 19
  Column 1 : John
  Column 2 : Logan
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ !!
listfriends
number of columns is 2
  Column 1 : Jordan
  Column 2 : 
  Column 1 : Andrew
  Column 2 : 
  Column 1 : Andrew
  Column 2 : 
  Column 1 : Andrew
  Column 2 : 
  Column 1 : Alexis
  Column 2 : 
  Column 1 : Alexis
  Column 2 : 
  Column 1 : Gabriel
  Column 2 : 
  Column 1 : Jessica
  Column 2 : 
  Column 1 : Austin
  Column 2 : 
  Column 1 : Jordan
  Column 2 : 
  Column 1 : Gabriel
  Column 2 : 
  Column 1 : Cassandra
  Column 2 : 
  Column 1 : Alexis
  Column 2 : 
  Column 1 : Alexis
  Column 2 : 	
  Column 1 : Andrew
  Column 2 : 
  Column 1 : Haley
  Column 2 : 
  Column 1 : Brittany
  Column 2 : 
  Column 1 : Brittany
  Column 2 : 
  Column 1 : Jordan
  Column 2 : 
  Column 1 : John
  Column 2 : 
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ !!
listfriends
number of columns is 2
  Column 1 : Jordan
  Column 2 : Tiffany
  Column 1 : Andrew
  Column 2 : Kris
  Column 1 : Andrew
  Column 2 : Austin
  Column 1 : Andrew
  Column 2 : Jordan
  Column 1 : Alexis
  Column 2 : Gabriel
  Column 1 : Alexis
  Column 2 : Jessica
  Column 1 : Gabriel
  Column 2 : Jessica
  Column 1 : Jessica
  Column 2 : Kyle
  Column 1 : Austin
  Column 2 : Kyle
  Column 1 : Jordan
  Column 2 : Logan
  Column 1 : Gabriel
  Column 2 : Jordan
  Column 1 : Cassandra
  Column 2 : Gabriel
  Column 1 : Alexis
  Column 2 : Tiffany
  Column 1 : Alexis
  Column 2 : Cassandra
  Column 1 : Andrew
  Column 2 : Gabriel
  Column 1 : Haley
  Column 2 : Kris
  Column 1 : Brittany
  Column 2 : Kris
  Column 1 : Brittany
  Column 2 : Haley
  Column 1 : Jordan
  Column 2 : Kyle
  Column 1 : John
  Column 2 : Logan
No fetch

The driver reported the following diagnostics whilst running SQLFetch

bash-4.1$ !!
listfriends
number of columns is 2
  Column 1 : Jordan
  Column 2 : Tiffany
Friends:   Jordan     & Tiffany   
  Column 1 : Andrew
  Column 2 : Kris
Friends:   Andrew     & Kris      
  Column 1 : Andrew
  Column 2 : Austin
Friends:   Andrew     & Austin    
  Column 1 : Andrew
  Column 2 : Jordan
Friends:   Andrew     & Jordan    
  Column 1 : Alexis
  Column 2 : Gabriel
Friends:   Alexis     & Gabriel   
  Column 1 : Alexis
  Column 2 : Jessica
Friends:   Alexis     & Jessica   
  Column 1 : Gabriel
  Column 2 : Jessica
Friends:   Gabriel    & Jessica   
  Column 1 : Jessica
  Column 2 : Kyle
Friends:   Jessica    & Kyle      
  Column 1 : Austin
  Column 2 : Kyle
Friends:   Austin     & Kyle      
  Column 1 : Jordan
  Column 2 : Logan
Friends:   Jordan     & Logan     
  Column 1 : Gabriel
  Column 2 : Jordan
Friends:   Gabriel    & Jordan    
  Column 1 : Cassandra
  Column 2 : Gabriel
Friends:   Cassandra  & Gabriel   
  Column 1 : Alexis
  Column 2 : Tiffany
Friends:   Alexis     & Tiffany   
  Column 1 : Alexis
  Column 2 : Cassandra
Friends:   Alexis     & Cassandra 
  Column 1 : Andrew
  Column 2 : Gabriel
Friends:   Andrew     & Gabriel   
  Column 1 : Haley
  Column 2 : Kris
Friends:   Haley      & Kris      
  Column 1 : Brittany
  Column 2 : Kris
Friends:   Brittany   & Kris      
  Column 1 : Brittany
  Column 2 : Haley
Friends:   Brittany   & Haley     
  Column 1 : Jordan
  Column 2 : Kyle
Friends:   Jordan     & Kyle      
  Column 1 : John
  Column 2 : Logan
Friends:   John       & Logan     
bash-4.1$ !!
listfriends
number of columns is 2
Friends:   Jordan     & Tiffany   
Friends:   Andrew     & Kris      
Friends:   Andrew     & Austin    
Friends:   Andrew     & Jordan    
Friends:   Alexis     & Gabriel   
Friends:   Alexis     & Jessica   
Friends:   Gabriel    & Jessica   
Friends:   Jessica    & Kyle      
Friends:   Austin     & Kyle      
Friends:   Jordan     & Logan     
Friends:   Gabriel    & Jordan    
Friends:   Cassandra  & Gabriel   
Friends:   Alexis     & Tiffany   
Friends:   Alexis     & Cassandra 
Friends:   Andrew     & Gabriel   
Friends:   Haley      & Kris      
Friends:   Brittany   & Kris      
Friends:   Brittany   & Haley     
Friends:   Jordan     & Kyle      
Friends:   John       & Logan     
bash-4.1$ !!
listfriends
Friends:   Jordan     & Tiffany   
Friends:   Andrew     & Kris      
Friends:   Andrew     & Austin    
Friends:   Andrew     & Jordan    
Friends:   Alexis     & Gabriel   
Friends:   Alexis     & Jessica   
Friends:   Gabriel    & Jessica   
Friends:   Jessica    & Kyle      
Friends:   Austin     & Kyle      
Friends:   Jordan     & Logan     
Friends:   Gabriel    & Jordan    
Friends:   Cassandra  & Gabriel   
Friends:   Alexis     & Tiffany   
Friends:   Alexis     & Cassandra 
Friends:   Andrew     & Gabriel   
Friends:   Haley      & Kris      
Friends:   Brittany   & Kris      
Friends:   Brittany   & Haley     
Friends:   Jordan     & Kyle      
Friends:   John       & Logan     
bash-4.1$ listfriendsof
No friend provided
bash-4.1$ listfriendsof Jordan
Friends of Jordan
bash-4.1$ !!
listfriendsof Jordan
Friends of Jordan
bash-4.1$ !!
listfriendsof Jordan
Friends of Jordan
bash-4.1$ !!
listfriendsof Jordan
Friends of Jordan
bash-4.1$ listfriend
bash: listfriend: command not found
bash-4.1$ listfriends
Friends:   Jordan     & Tiffany   
Friends:   Andrew     & Kris      
Friends:   Andrew     & Austin    
Friends:   Andrew     & Jordan    
Friends:   Alexis     & Gabriel   
Friends:   Alexis     & Jessica   
Friends:   Gabriel    & Jessica   
Friends:   Jessica    & Kyle      
Friends:   Austin     & Kyle      
Friends:   Jordan     & Logan     
Friends:   Gabriel    & Jordan    
Friends:   Cassandra  & Gabriel   
Friends:   Alexis     & Tiffany   
Friends:   Alexis     & Cassandra 
Friends:   Andrew     & Gabriel   
Friends:   Haley      & Kris      
Friends:   Brittany   & Kris      
Friends:   Brittany   & Haley     
Friends:   Jordan     & Kyle      
Friends:   John       & Logan     
bash-4.1$ listfriendsof John
Friends of John
bash-4.1$ !!
listfriendsof John
Friends of John
bash-4.1$ make
gcc -o listfriendsof ListFriendsOf.c -l odbc
bash-4.1$ listfriendsof John
Friends of John
Friends:   Tiffany    &           
Friends:   Gabriel    &           
Friends:   Logan      &           
Friends:   Andrew     &           
Friends:   Kyle       &           
bash-4.1$ make
gcc -o listfriendsof ListFriendsOf.c -l odbc
bash-4.1$ listfriendsof John
Friends of John
bash-4.1$ make
gcc -o listfriendsof ListFriendsOf.c -l odbc
bash-4.1$ listfriendsof John
Friends of John
bash-4.1$ !!
listfriendsof John
Friends of John
Friends:   Logan      &           
bash-4.1$ make
make: Nothing to be done for `all'.
bash-4.1$ listfriendsof Jordan
Friend of Jordan
   Tiffany   
   Gabriel   
   Logan     
   Andrew    
   Kyle      
bash-4.1$ ls
connect1.c  listfriends    ListFriendsOf.c   Makefile  try01
connect2.c  ListFriends.c  ListFriendsOf.c~  ODBC.INI  try02
fetch.c     listfriendsof  listing.c	     try00     #try02#
bash-4.1$ exit
exit

Process shell finished
